diff options
| author | Dominik Geyer <dominik.geyer@gmx.de> | 2008-10-05 09:28:23 +0000 |
|---|---|---|
| committer | Dominik Geyer <dominik.geyer@gmx.de> | 2008-10-05 09:28:23 +0000 |
| commit | 42f661ae70e7f5d2a1b32fba4db502f59a4f3147 (patch) | |
| tree | 49e45f90e2d9939fa8e8f5843acb9f4a1c3630f6 /src/game/server/hooks.cpp | |
| parent | fda4fd3320b05e8db0162288e98313e5493c4fa7 (diff) | |
| download | zcatch-42f661ae70e7f5d2a1b32fba4db502f59a4f3147.tar.gz zcatch-42f661ae70e7f5d2a1b32fba4db502f59a4f3147.zip | |
always check for last time kill
Diffstat (limited to 'src/game/server/hooks.cpp')
| -rw-r--r-- | src/game/server/hooks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/server/hooks.cpp b/src/game/server/hooks.cpp index 200e2c86..8d37ed81 100644 --- a/src/game/server/hooks.cpp +++ b/src/game/server/hooks.cpp @@ -312,8 +312,7 @@ void mods_message(int msgtype, int client_id) } else if (msgtype == NETMSGTYPE_CL_KILL) { - //PLAYER *pplayer = get_player(client_id); - if(config.sv_spamprotection && p->last_kill+time_freq()*3 > time_get()) + if(p->last_kill+time_freq()*3 > time_get()) return; p->last_kill = time_get(); |