forked from Mirrors/openclonk
defense: only provide infinite grenade launcher ammo if homebase is active
parent
caca643c83
commit
27fa2410f4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue