Fix RadarWidget eating input outside its bounds.

This commit is contained in:
Paul Chote
2013-07-11 18:50:45 +12:00
parent a783321c03
commit 6a37808dae

View File

@@ -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)