summaryrefslogtreecommitdiff
path: root/src/cgame/cg_tutorial.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-09-25 13:41:22 +0000
committerTim Angus <tim@ngus.net>2007-09-25 13:41:22 +0000
commitef5690eecfe614cee99b56d32b3634980b9a0e9d (patch)
treeba3dc9966502bb5bb4b67a8bc17823af9a579998 /src/cgame/cg_tutorial.c
parent1b2c5b4e113fb1f182158f7c7b191717b79e3836 (diff)
* Replace "powerups" state data with "misc"
* Remove ps->ammo[ ] and replace with ps->ammo and ps->clips; this means only one ammo using weapon may be carried at once, but this is the case anyway * No need for BG_(Un)PackAmmoArray anymore, so remove them
Diffstat (limited to 'src/cgame/cg_tutorial.c')
-rw-r--r--src/cgame/cg_tutorial.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cgame/cg_tutorial.c b/src/cgame/cg_tutorial.c
index e5fc9eb5..888e9e1a 100644
--- a/src/cgame/cg_tutorial.c
+++ b/src/cgame/cg_tutorial.c
@@ -396,7 +396,6 @@ CG_HumanText
static void CG_HumanText( char *text, playerState_t *ps )
{
char *name;
- int ammo, clips;
upgrade_t upgrade = UP_NONE;
if( cg.weaponSelect <= 32 )
@@ -407,9 +406,7 @@ static void CG_HumanText( char *text, playerState_t *ps )
upgrade = cg.weaponSelect - 32;
}
- BG_UnpackAmmoArray( ps->weapon, ps->ammo, ps->powerups, &ammo, &clips );
-
- if( !ammo && !clips && !BG_FindInfinteAmmoForWeapon( ps->weapon ) )
+ if( !ps->ammo && !ps->clips && !BG_FindInfinteAmmoForWeapon( ps->weapon ) )
{
//no ammo
switch( ps->weapon )