From ee3e2ce63c1f6810d36cc4e22eddeb51527efc1d Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sat, 12 Jul 2014 16:29:12 +0200 Subject: separate MISC_INFOHEAD into 2 fields, because a single 16-bit field is not enough to store 2 entity numbers (20 bits) --- src/cgame/cg_weapons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_weapons.c b/src/cgame/cg_weapons.c index 55ad649..19a0bfc 100644 --- a/src/cgame/cg_weapons.c +++ b/src/cgame/cg_weapons.c @@ -911,9 +911,9 @@ static void CG_GenerateCKitDisplay( void ) part 1: figure out what we're dealing with */ - powerNetwork = ( ps->misc[ MISC_INFOHEAD ] & 1023 ); + powerNetwork = ps->misc[ MISC_POWER_NETWORK ] & 1023; - probeEntity = ( ps->misc[ MISC_INFOHEAD ] >> 10 ) & 1023; + probeEntity = ps->misc[ MISC_PROBE_ENTITY ] & 1023; if( probeEntity != 1023 ) { target = qtrue; -- cgit