diff --git a/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs b/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs index dbccffe965..6a53ab4090 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs @@ -98,16 +98,16 @@ namespace OpenRA.Mods.Common.Traits public void RepairBuilding(Actor self, Player player) { if (IsTraitDisabled || !self.AppearsFriendlyTo(player.PlayerActor)) - return; - - // Remove the player if they are already repairing + return; + + // Remove the player if they are already repairing if (Repairers.Remove(player)) { UpdateCondition(self); - return; + return; } - - // Don't add new players if the limit has already been reached + + // Don't add new players if the limit has already been reached if (Repairers.Count >= Info.RepairBonuses.Length - 1) return; @@ -131,10 +131,10 @@ namespace OpenRA.Mods.Common.Traits if (remainingTicks == 0) { - Repairers.RemoveAll(isNotActiveAlly); + Repairers.RemoveAll(isNotActiveAlly); UpdateCondition(self); - - // If after the previous operation there's no repairers left, stop + + // If after the previous operation there's no repairers left, stop if (Repairers.Count == 0) { RepairActive = false;