brought back the MoveFlash

closes #2592
This commit is contained in:
Matthias Mailänder
2013-10-24 21:37:43 +02:00
parent 55b848f071
commit b1c3ac20bf
16 changed files with 104 additions and 11 deletions

View File

@@ -12,6 +12,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using OpenRA.Effects;
using OpenRA.FileFormats;
using OpenRA.Graphics;
using OpenRA.Orders;
@@ -140,6 +141,8 @@ namespace OpenRA.Widgets
orders.Do(o => world.IssueOrder(o));
world.PlayVoiceForOrders(orders);
if (orders.Where(o => o.OrderString != null && o.OrderString.EndsWith("Move")).Any())
world.Add(new MoveFlash(worldRenderer.Viewport.ViewToWorldPosition(mi.Location), world));
}
public override string GetCursor(int2 screenPos)