From 0883fc3dfd51d8dda9a9dc055400871057cfe3a2 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 11 Mar 2008 08:48:48 +0000 Subject: cleaned up some console stuff --- src/game/client/gc_hooks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/client/gc_hooks.cpp') 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); -- cgit 1.4.1