Fix RadarWidget eating input outside its bounds.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user