fixing bad shroud behavior

This commit is contained in:
Chris Forbes
2010-01-05 22:17:49 +13:00
parent 77da5c89de
commit 05b4517f2e
2 changed files with 6 additions and 7 deletions

View File

@@ -59,6 +59,11 @@ namespace OpenRa.Game
palette = new HardwarePalette(renderer, Rules.Map);
world = new World();
Game.world.ActorAdded += a =>
{
if (a.Owner != null && a.Info != null)
a.Owner.Shroud.Explore(a);
};
for (int i = 0; i < 8; i++)
{
@@ -102,12 +107,6 @@ 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,