From 25a2e529bab1d65e19f4bddebda94539f576e2ad Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Wed, 27 Aug 2008 20:17:04 +0000 Subject: fixed so the client gets the correct player info --- src/game/client/gc_hooks.cpp | 4 ++++ 1 file changed, 4 insertions(+) (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 4d0be686..df808a67 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -188,6 +188,7 @@ extern "C" void modc_message(int msgtype) gameclient.on_message(msgtype); +#if 0 // normal void *rawmsg = netmsg_secure_unpack(msgtype); if(!rawmsg) @@ -237,6 +238,7 @@ extern "C" void modc_message(int msgtype) } else if(msgtype == NETMSGTYPE_SV_SETINFO) { + dbg_msg("DEBUG", "got info"); NETMSG_SV_SETINFO *msg = (NETMSG_SV_SETINFO *)rawmsg; str_copy(gameclient.clients[msg->cid].name, msg->name, 64); @@ -309,6 +311,8 @@ extern "C" void modc_message(int msgtype) NETMSG_SV_SOUNDGLOBAL *msg = (NETMSG_SV_SOUNDGLOBAL *)rawmsg; snd_play_random(CHN_GLOBAL, msg->soundid, 1.0f, vec2(0,0)); } + +#endif } extern "C" void modc_connected() -- cgit 1.4.1