pruning refs to Game.world

This commit is contained in:
Bob
2010-08-20 17:46:58 +12:00
parent 0e71af25f4
commit 3f68330c70
13 changed files with 30 additions and 17 deletions

View File

@@ -35,8 +35,8 @@ namespace OpenRA.Mods.RA.Effects
if (silo == null)
{
altitude = Game.world.Map.Height*Game.CellSize;
StartDescent(Game.world);
altitude = silo.World.Map.Height*Game.CellSize;
StartDescent(silo.World);
}
else
pos = silo.CenterLocation + spawnOffset;
@@ -65,7 +65,7 @@ namespace OpenRA.Mods.RA.Effects
if (altitude <= 0)
{
// Trigger screen desaturate effect
foreach (var a in Game.world.Queries.WithTrait<NukePaletteEffect>())
foreach (var a in world.Queries.WithTrait<NukePaletteEffect>())
a.Trait.Enable();
Explode(world);