From 6a37808dae9632e03f3f1496a01673a2debb77df Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 11 Jul 2013 18:50:45 +1200 Subject: [PATCH] Fix RadarWidget eating input outside its bounds. --- OpenRA.Mods.RA/Widgets/RadarWidget.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenRA.Mods.RA/Widgets/RadarWidget.cs b/OpenRA.Mods.RA/Widgets/RadarWidget.cs index 6e4f57c716..24e79cc9a7 100755 --- a/OpenRA.Mods.RA/Widgets/RadarWidget.cs +++ b/OpenRA.Mods.RA/Widgets/RadarWidget.cs @@ -94,10 +94,10 @@ namespace OpenRA.Mods.RA.Widgets public override bool HandleMouseInput(MouseInput mi) { - if (!hasRadar) - return true; - if (!mapRect.Contains(mi.Location)) + return false; + + if (!hasRadar) return true; var loc = MinimapPixelToCell(mi.Location); @@ -127,8 +127,6 @@ namespace OpenRA.Mods.RA.Widgets return true; } - public override Rectangle EventBounds { get { return mapRect; } } - public override void Draw() { if (world == null)