summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 566b533a..dff03fbc 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2063,8 +2063,7 @@ void Cmd_Buy_f( gentity_t *ent )
weapon = BG_WeaponByName( s )->number;
upgrade = BG_UpgradeByName( s )->number;
- // Seems odd to let people 'buy ammo' from a Reactor but allow this
- // and make sure we only give energy ammo in this case
+ // Only give energy from reactors or repeaters
if( G_BuildableRange( ent->client->ps.origin, 100, BA_H_ARMOURY ) )
energyOnly = qfalse;
else if( upgrade == UP_AMMO && BG_HasEnergyWeapon( &ent->client->ps ) &&