shroud: it works. perf is pretty ugly, and there are a lot of small bugs.

This commit is contained in:
Chris Forbes
2010-01-05 22:12:22 +13:00
parent 27b2d20cab
commit 77da5c89de
11 changed files with 142 additions and 5 deletions

View File

@@ -102,6 +102,12 @@ namespace OpenRa.Game
oreFrequency = (int)(Rules.General.GrowthRate * 60 * 1000);
oreTicks = oreFrequency;
foreach (var a in Game.world.Actors)
if (a.Info != null && a.Owner == players[0])
players[0].Shroud.Explore(a);
Game.world.ActorAdded += a => players[0].Shroud.Explore(a);
}
public static void Initialize(string mapName, Renderer renderer, int2 clientSize,