defense: only provide infinite grenade launcher ammo if homebase is active

alut-include-path
Maikel de Vries 2017-02-02 21:45:59 +01:00
parent caca643c83
commit 27fa2410f4
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ func ContentsDestruction()
// Recreate ammo - but max one per frame (also to ensure we don't run into endless loops when destructing)
func RechargeIronBomb()
{
if (!g_homebases)
return;
var t = FrameCounter();
if (this.last_iron_bomb_recharge == t) return nil;
this.last_iron_bomb_recharge = t;