Fix RCS1089

This commit is contained in:
RoosterDragon
2023-03-18 12:50:55 +00:00
committed by Gustas
parent 4dd787be13
commit eb287d9b8d
17 changed files with 26 additions and 23 deletions

View File

@@ -197,7 +197,7 @@ namespace OpenRA.Mods.Common.Traits
currentTargetDelay = 0;
}
else
currentTargetDelay += 1;
currentTargetDelay++;
if (capturingToken == Actor.InvalidConditionToken)
capturingToken = self.GrantCondition(info.CapturingCondition);

View File

@@ -714,7 +714,7 @@ namespace OpenRA.Mods.Common.Traits
return;
RemainingCost -= costThisFrame;
RemainingTime -= 1;
RemainingTime--;
if (RemainingTime > 0)
return;

View File

@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Common.Traits
// Not a real hash, but things checking this only care about checking when the selection has changed
// For this purpose, having a false positive (forcing a refresh when nothing changed) is much better
// than a false negative (selection state mismatch)
Hash += 1;
Hash++;
}
public virtual void Add(Actor a)