summaryrefslogtreecommitdiff
path: root/src/game/bg_pmove.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-01-13 17:15:50 +0000
committerTim Angus <tim@ngus.net>2002-01-13 17:15:50 +0000
commit88f875b5c2ce0eff085084535c6fa23f2b30470c (patch)
tree87d5d6f3e5d00d965cc6805f6e88fd1e5048a149 /src/game/bg_pmove.c
parent4ad94a5b05565c08e34d8f575373627c7f6ac9e8 (diff)
Staging transitions. Battpack. Half jetpack
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r--src/game/bg_pmove.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index 42281d8d..ce976a8e 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -2175,6 +2175,10 @@ static void PM_Weapon( void )
BG_FindAmmoForWeapon( pm->ps->weapon, &ammo, NULL, NULL );
}
+ if( BG_FindUsesEnergyForWeapon( pm->ps->weapon ) &&
+ BG_gotItem( UP_BATTPACK, pm->ps->stats ) )
+ ammo *= 2;
+
BG_packAmmoArray( pm->ps->weapon, pm->ps->ammo, pm->ps->powerups, ammo, clips, maxclips );
}