Added option to turn off rendering of target lines in the settings

This commit is contained in:
figrita
2015-07-03 21:25:08 -04:00
committed by Oliver Brakmann
parent af6f1ef675
commit ab3ab6f230
5 changed files with 19 additions and 0 deletions

View File

@@ -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;