Fixed radar click position - was not respecting zoom setting for emulating the mouse coordinate.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user