unhacking Player and World actors

This commit is contained in:
Chris Forbes
2010-01-14 17:17:23 +13:00
parent 1557a77fec
commit a3ba286b06
6 changed files with 14 additions and 15 deletions

View File

@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using OpenRa.Game.Traits;
namespace OpenRa.Game.Graphics
{
@@ -97,7 +98,8 @@ namespace OpenRa.Game.Graphics
public void GoToStartLocation()
{
Center(Game.world.Actors.Where(a => a.Info != null && a.Owner == Game.LocalPlayer));
Center(Game.world.Actors.Where(a => a.Info != null
&& a.traits.Contains<Selectable>() && a.Owner == Game.LocalPlayer));
}
}
}