Fixed radar click position - was not respecting zoom setting for emulating the mouse coordinate.

This commit is contained in:
James Dunne
2012-06-21 19:37:30 -05:00
parent b127ae8027
commit cf1d4d0efb

View File

@@ -108,7 +108,7 @@ namespace OpenRA.Mods.RA.Widgets
Event = MouseInputEvent.Down, Event = MouseInputEvent.Down,
Button = MouseButton.Right, Button = MouseButton.Right,
Modifiers = mi.Modifiers, Modifiers = mi.Modifiers,
Location = (loc.ToPPos().ToFloat2() - Game.viewport.Location).ToInt2() Location = (((loc.ToPPos().ToFloat2()) - Game.viewport.Location) * Game.viewport.Zoom).ToInt2()
}; };
if (WorldInteractionController != null) if (WorldInteractionController != null)