Normalize the line-endings on RepairableBuilding.
This commit is contained in:
committed by
reaperrr
parent
3a377a572c
commit
d9786dcf72
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user