diff options
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 92599d38..57480191 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1520,8 +1520,7 @@ void HRpt_Use( gentity_t *self, gentity_t *other, gentity_t *activator ) if( !BG_FindUsesEnergyForWeapon( weapon ) ) return; - if( !other->client->campingAtTheArmoury && - !BG_WeaponIsFull( weapon, ps->ammo, ps->powerups ) ) + if( !BG_WeaponIsFull( weapon, ps->ammo, ps->powerups ) ) { BG_FindAmmoForWeapon( weapon, &maxAmmo, NULL, &maxClips ); @@ -1532,15 +1531,6 @@ void HRpt_Use( gentity_t *self, gentity_t *other, gentity_t *activator ) G_AddEvent( activator, EV_RPTUSE_SOUND, 0 ); activator->client->lastRefilTime = level.time; - - other->client->lastBoughtAmmoTime = level.time; - other->client->campingAtTheArmoury = qtrue; - } - else - { - trap_SendServerCommand( other-g_entities, - va( "print \"Move away or wait 45 seconds for ammo/energy\n\"" ) ); - return; } } |