Display target lines when the Waypoint command bar mode is active.

This commit is contained in:
Paul Chote
2019-08-07 19:34:14 +00:00
committed by teinarss
parent 292196e2d6
commit 2909445452

View File

@@ -12,6 +12,7 @@
using System.Collections.Generic;
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Mods.Common.Orders;
using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
@@ -64,7 +65,7 @@ namespace OpenRA.Mods.Common.Traits
return Enumerable.Empty<IRenderable>();
// Players want to see the lines when in waypoint mode.
var force = Game.GetModifierKeys().HasModifier(Modifiers.Shift);
var force = Game.GetModifierKeys().HasModifier(Modifiers.Shift) || self.World.OrderGenerator is ForceModifiersOrderGenerator;
if (--lifetime <= 0 && !force)
return Enumerable.Empty<IRenderable>();