fixed broken UiOverlay

This commit is contained in:
Chris Forbes
2009-10-11 10:54:09 +13:00
parent 0eee005d52
commit cdf56c278f
3 changed files with 7 additions and 6 deletions

View File

@@ -95,11 +95,11 @@ namespace OpenRa.Game
Button = e.Button,
Event = MouseInputEvent.Move,
Location = new int2(e.Location)
});
if (game.controller.orderGenerator != null)
game.controller.orderGenerator.PrepareOverlay(game,
new int2(e.Location.X / 24, e.Location.Y / 24));
});
if (game.controller.orderGenerator != null)
game.controller.orderGenerator.PrepareOverlay(game,
((1 / 24f) * (new float2(e.Location) + game.viewport.Location)).ToInt2());
}
protected override void OnMouseUp(MouseEventArgs e)