summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-12 16:29:12 +0200
committerenneract <trem.redman@gmail.com>2014-07-12 17:06:40 +0200
commitee3e2ce63c1f6810d36cc4e22eddeb51527efc1d (patch)
tree27b71dfd256ea1a8bed146ecc9b7e93db86bff18 /src/cgame
parent083ea6fdd483db696cdd95ef3b7ba4d29b85b201 (diff)
separate MISC_INFOHEAD into 2 fields, because a single 16-bit field is not enough to store 2 entity numbers (20 bits)
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_weapons.c4
1 files changed, 2 insertions, 2 deletions
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;