Try to win a small amount of performance when the shellmap is disabled
This commit is contained in:
@@ -260,6 +260,7 @@ namespace OpenRA
|
||||
public event Action<Actor> ActorAdded = _ => { };
|
||||
public event Action<Actor> ActorRemoved = _ => { };
|
||||
|
||||
public bool ShouldTick { get { return Type != WorldType.Shellmap || Game.Settings.Game.ShowShellmap; } }
|
||||
public bool Paused { get; internal set; }
|
||||
public bool PredictedPaused { get; internal set; }
|
||||
public bool PauseStateLocked { get; set; }
|
||||
@@ -282,7 +283,7 @@ namespace OpenRA
|
||||
|
||||
public void Tick()
|
||||
{
|
||||
if (!Paused && (Type != WorldType.Shellmap || Game.Settings.Game.ShowShellmap))
|
||||
if (!Paused)
|
||||
{
|
||||
WorldTick++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user