diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-11 08:48:48 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-11 08:48:48 +0000 |
| commit | 0883fc3dfd51d8dda9a9dc055400871057cfe3a2 (patch) | |
| tree | 0997e2fd46fdbd68c701c6dc5b500882091faaa9 /src/game/client/gc_hooks.cpp | |
| parent | 1d98b33ec21827aab21a5afef27c8abf6c510507 (diff) | |
| download | zcatch-0883fc3dfd51d8dda9a9dc055400871057cfe3a2.tar.gz zcatch-0883fc3dfd51d8dda9a9dc055400871057cfe3a2.zip | |
cleaned up some console stuff
Diffstat (limited to 'src/game/client/gc_hooks.cpp')
| -rw-r--r-- | src/game/client/gc_hooks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/gc_hooks.cpp b/src/game/client/gc_hooks.cpp index 0074bab7..73dde8f2 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -467,7 +467,7 @@ extern "C" void modc_message(int msg) const char *message = msg_unpack_string(); /* check for errors and invalid inputs */ - if(msg_unpack_error() || cid < 0 || cid >= MAX_CLIENTS) + if(msg_unpack_error() || cid < -1 || cid >= MAX_CLIENTS) return; dbg_msg("message", "chat cid=%d team=%d msg='%s'", cid, team, message); |