Use read-only autoimplemented property when possible
This commit is contained in:
committed by
atlimit8
parent
79f321cb44
commit
7eb64ea6fc
@@ -77,7 +77,7 @@ namespace OpenRA
|
||||
// Players in mission maps must not leave the player view
|
||||
public bool Spectating => !inMissionMap && (spectating || WinState != WinState.Undefined);
|
||||
|
||||
public World World { get; private set; }
|
||||
public World World { get; }
|
||||
|
||||
readonly bool inMissionMap;
|
||||
readonly bool spectating;
|
||||
|
||||
Reference in New Issue
Block a user