git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1337 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -76,7 +76,7 @@ namespace OpenRa.Game
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
float2 point = new float2(e.Location) + game.viewport.Location;
|
||||
RectangleF rect = new RectangleF(sidebar.Location.ToPointF(), new SizeF(sidebar.Width, game.viewport.Height));
|
||||
RectangleF rect = new RectangleF(sidebar.Region.Location.ToPointF(), new SizeF(sidebar.Width, game.viewport.Height));
|
||||
if (rect.Contains(point.ToPointF()))
|
||||
{
|
||||
sidebar.Build( sidebar.FindSpriteAtPoint( point ), game );
|
||||
|
||||
Reference in New Issue
Block a user