Add extension methods to Rectangle/RectangleF, remove a pile of ToPoint()'s.

This commit is contained in:
Paul Chote
2011-01-05 22:24:11 +13:00
parent 3e1db3e8ae
commit df460d7407
7 changed files with 24 additions and 13 deletions

View File

@@ -88,7 +88,7 @@ namespace OpenRA.Mods.RA.Widgets
{
if (!hasRadar || radarAnimating) return false; // we're not set up for this.
if (!mapRect.Contains(mi.Location.ToPointF()))
if (!mapRect.Contains(mi.Location))
return false;
var loc = MinimapPixelToCell(mi.Location);