summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-09-16 01:24:12 +0000
committerTim Angus <tim@ngus.net>2002-09-16 01:24:12 +0000
commit8ecf6d9e5d2a03e965647ac264940f8cd34eef0a (patch)
tree579d5c88e7d3d3b767e39d3cdd3e40ebc974bf75 /src/game/g_cmds.c
parenteb401f8e27491f048ca0095a3e2f984e2e3a151b (diff)
* Added global header tremulous.h in preparation for balancing
* Constants propogated throughout the source * Various random fixes and tweaks
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 1b2e0156..18b33792 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1351,7 +1351,7 @@ void Cmd_Buy_f( gentity_t *ent )
if( BG_FindUsesEnergyForWeapon( weapon ) &&
BG_gotItem( UP_BATTPACK, ent->client->ps.stats ) )
- quan *= 2;
+ quan = (int)( (float)quan * BATTPACK_MODIFIER );
BG_packAmmoArray( weapon, ent->client->ps.ammo, ent->client->ps.powerups,
quan, clips, maxClips );