sound works

This commit is contained in:
Chris Forbes
2009-10-14 10:35:24 +13:00
parent 2709118d48
commit 74ebdc5f93
7 changed files with 138 additions and 6 deletions

View File

@@ -148,7 +148,7 @@ namespace OpenRa.Game
{
if (mi.Button == MouseButtons.Left && mi.Event == MouseInputEvent.Down)
{
var point = new float2(mi.Location.X, mi.Location.Y);
var point = mi.Location.ToFloat2();
var item = GetItem(point);
if (item != null)
{
@@ -162,7 +162,7 @@ namespace OpenRa.Game
}
else if( mi.Button == MouseButtons.Right && mi.Event == MouseInputEvent.Down )
{
var point = new float2(mi.Location.X, mi.Location.Y);
var point = mi.Location.ToFloat2();
var item = GetItem(point);
if( item != null )
{