Fix not all ammo pools getting rearmed during RearmTick

This commit is contained in:
abcdefg30
2023-01-20 14:39:24 +01:00
committed by Gustas
parent 049d0283f9
commit 640e9d68b7

View File

@@ -56,6 +56,7 @@ namespace OpenRA.Mods.Common.Traits
public bool RearmTick(Actor self)
{
var rearmComplete = true;
foreach (var ammoPool in RearmableAmmoPools)
{
if (!ammoPool.HasFullAmmo)
@@ -69,11 +70,11 @@ namespace OpenRA.Mods.Common.Traits
ammoPool.GiveAmmo(self, ammoPool.Info.ReloadCount);
}
return false;
rearmComplete = false;
}
}
return true;
return rearmComplete;
}
}
}