summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 3d6e58a0..c9079f39 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1520,7 +1520,8 @@ void HRpt_Use( gentity_t *self, gentity_t *other, gentity_t *activator )
if( !BG_FindUsesEnergyForWeapon( weapon ) )
return;
- if( !other->client->campingAtTheArmoury )
+ if( !other->client->campingAtTheArmoury &&
+ !BG_WeaponIsFull( weapon, ps->ammo, ps->powerups ) )
{
BG_FindAmmoForWeapon( weapon, &maxAmmo, NULL, &maxClips );