moving Map, TileSet from Rules to World

This commit is contained in:
Bob
2010-01-17 12:18:26 +13:00
parent fa421410fe
commit 1ec3ee60eb
19 changed files with 135 additions and 130 deletions

View File

@@ -10,9 +10,9 @@ namespace OpenRa
public static void AddSmudge(bool isCrater, int x, int y)
{
var smudge = Rules.Map.MapTiles[x, y].smudge;
var smudge = Game.world.Map.MapTiles[x, y].smudge;
if (smudge == 0)
Rules.Map.MapTiles[x, y].smudge = (byte) (isCrater
Game.world.Map.MapTiles[x, y].smudge = (byte) (isCrater
? (firstCrater + framesPerCrater * ChooseSmudge())
: (firstScorch + ChooseSmudge()));
@@ -21,7 +21,7 @@ namespace OpenRa
/* deepen the crater */
var amount = (smudge - firstCrater) % framesPerCrater;
if (amount < framesPerCrater - 1)
Rules.Map.MapTiles[x, y].smudge++;
Game.world.Map.MapTiles[x, y].smudge++;
}
public static void AddSmudge(int2 targetTile, WarheadInfo warhead)