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

@@ -124,7 +124,7 @@ namespace OpenRA.Mods.Common.Projectiles
readonly float3 shadowColor;
readonly float shadowAlpha;
ContrailRenderable contrail;
readonly ContrailRenderable contrail;
[Sync]
WPos pos, lastPos, target, source;

View File

@@ -189,16 +189,16 @@ namespace OpenRA.Mods.Common.Projectiles
int ticks;
int ticksToNextSmoke;
ContrailRenderable contrail;
string trailPalette;
readonly ContrailRenderable contrail;
readonly string trailPalette;
States state;
bool targetPassedBy;
bool lockOn;
readonly bool lockOn;
bool allowPassBy; // TODO: use this also with high minimum launch angle settings
WPos targetPosition;
WVec offset;
readonly WVec offset;
WVec tarVel;
WVec predVel;
@@ -210,7 +210,7 @@ namespace OpenRA.Mods.Common.Projectiles
int speed;
int loopRadius;
WDist distanceCovered;
WDist rangeLimit;
readonly WDist rangeLimit;
WAngle renderFacing;