Fixed fields missing the readonly modifier

This commit is contained in:
penev92
2022-01-20 00:43:58 +02:00
committed by Paul Chote
parent f83e27d647
commit bf332b6619
96 changed files with 173 additions and 169 deletions

View File

@@ -21,10 +21,11 @@ namespace OpenRA.Mods.Common.Activities
{
readonly IPositionable positionable;
readonly IDisabledTrait disableable;
WPos start, end;
int length;
readonly WPos start;
readonly WPos end;
readonly int length;
int ticks = 0;
WAngle? desiredFacing;
readonly WAngle? desiredFacing;
public Drag(Actor self, WPos start, WPos end, int length, WAngle? facing = null)
{

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Activities
int waitTicksRemaining;
// To work around queued activity issues while minimizing changes to legacy behaviour
bool evaluateNearestMovableCell;
readonly bool evaluateNearestMovableCell;
// Scriptable move order
// Ignores lane bias and nearby units

View File

@@ -111,7 +111,7 @@ namespace OpenRA.Mods.Common.Activities
return TickChild(self);
}
List<CPos> searchCells = new List<CPos>();
readonly List<CPos> searchCells = new List<CPos>();
int searchCellsTick = -1;
List<CPos> CalculatePathToTarget(Actor self, BlockedByActor check)