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)
|
public override bool HandleMouseInput(MouseInput mi)
|
||||||
{
|
{
|
||||||
if (!hasRadar)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if (!mapRect.Contains(mi.Location))
|
if (!mapRect.Contains(mi.Location))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (!hasRadar)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
var loc = MinimapPixelToCell(mi.Location);
|
var loc = MinimapPixelToCell(mi.Location);
|
||||||
@@ -127,8 +127,6 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override Rectangle EventBounds { get { return mapRect; } }
|
|
||||||
|
|
||||||
public override void Draw()
|
public override void Draw()
|
||||||
{
|
{
|
||||||
if (world == null)
|
if (world == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user