Merge pull request #8752 from obrakmann/optional-target-lines
Added option to turn off rendering of target lines in the settings
This commit is contained in:
@@ -140,6 +140,7 @@ namespace OpenRA
|
||||
public bool UseClassicMouseStyle = false;
|
||||
public bool AlwaysShowStatusBars = false;
|
||||
public bool TeamHealthColors = false;
|
||||
public bool DrawTargetLine = true;
|
||||
|
||||
public bool AllowDownloading = true;
|
||||
public string MapRepository = "http://resource.openra.net/map/";
|
||||
|
||||
@@ -64,6 +64,9 @@ namespace OpenRA.Traits
|
||||
if ((lifetime <= 0 || --lifetime <= 0) && !force)
|
||||
yield break;
|
||||
|
||||
if (!(force || Game.Settings.Game.DrawTargetLine))
|
||||
yield break;
|
||||
|
||||
if (targets == null || targets.Count == 0)
|
||||
yield break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user