Re-implement the insufficient funds warning in a simpler manner
This commit is contained in:
@@ -56,7 +56,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", repairsUnits.StartRepairingNotification, self.Owner.Faction.InternalName);
|
||||
}
|
||||
|
||||
if (!self.Owner.PlayerActor.Trait<PlayerResources>().TakeCash(cost))
|
||||
if (!self.Owner.PlayerActor.Trait<PlayerResources>().TakeCash(cost, true))
|
||||
{
|
||||
remainingTicks = 1;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user