From e891a7a75bafb95caeebb8c74d871e5f5d9ab4f7 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 23 Mar 2008 10:14:35 +0000 Subject: fixed all the weapon switching bugs --- src/game/client/gc_hooks.cpp | 3 ++- 1 file changed, 2 insertions(+), 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 d3feb871..601575f3 100644 --- a/src/game/client/gc_hooks.cpp +++ b/src/game/client/gc_hooks.cpp @@ -608,7 +608,8 @@ extern "C" void modc_message(int msgtype) else if(msgtype == NETMSGTYPE_SV_WEAPON_PICKUP) { NETMSG_SV_WEAPON_PICKUP *msg = (NETMSG_SV_WEAPON_PICKUP *)rawmsg; - picked_up_weapon = msg->weapon+1; + if(config.cl_autoswitch_weapons) + input_data.wanted_weapon = msg->weapon+1; } else if(msgtype == NETMSGTYPE_SV_READY_TO_ENTER) { -- cgit 1.4.1