sight moved to Unit/Building

This commit is contained in:
Chris Forbes
2010-01-11 18:37:35 +13:00
parent 50b138e2de
commit 4b19f1dfe5
7 changed files with 83 additions and 192 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenRa.Game
public void Explore(Actor a)
{
foreach (var t in Game.FindTilesInCircle((1f / Game.CellSize * a.CenterLocation).ToInt2(), a.LegacyInfo.Sight))
foreach (var t in Game.FindTilesInCircle((1f / Game.CellSize * a.CenterLocation).ToInt2(), a.Info.Traits.Get<OwnedActorInfo>().Sight))
explored[t.X, t.Y] = true;
dirty = true;