diff options
author | tron <tron@openttd.org> | 2005-06-25 16:44:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-25 16:44:57 +0000 |
commit | bec5e4fb4cc475596e1f22db9232e2bd9a190d89 (patch) | |
tree | ed8629cbd76a9334fd657971f55ef5cb63c9915f /disaster_cmd.c | |
parent | 61f6f07edd837728d72e83daa0a4b8893ec77307 (diff) | |
download | openttd-bec5e4fb4cc475596e1f22db9232e2bd9a190d89.tar.xz |
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r-- | disaster_cmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c index 7ff17c1f1..a8bb816a0 100644 --- a/disaster_cmd.c +++ b/disaster_cmd.c @@ -627,10 +627,10 @@ static void DisasterTick_4b(Vehicle *v) EV_EXPLOSION_SMALL); } - BEGIN_TILE_LOOP(tile,6,6,v->tile - TILE_XY(3,3)) + BEGIN_TILE_LOOP(tile, 6, 6, v->tile - TileDiffXY(3, 3)) tile = TILE_MASK(tile); DisasterClearSquare(tile); - END_TILE_LOOP(tile,6,6,v->tile - TILE_XY(3,3)) + END_TILE_LOOP(tile, 6, 6, v->tile - TileDiffXY(3, 3)) } } @@ -744,7 +744,7 @@ static void Disaster1_Init(void) x = TileX(Random()) * 16 + 8; InitializeDisasterVehicle(v, x, 0, 135, 3, 2); - v->dest_tile = TILE_XY(MapSizeX() / 2, MapSizeY() / 2); + v->dest_tile = TileXY(MapSizeX() / 2, MapSizeY() / 2); v->age = 0; // Allocate shadow too? @@ -846,7 +846,7 @@ static void Disaster4_Init(void) y = MapMaxX() * 16 - 1; InitializeDisasterVehicle(v, x, y, 135, 7, 9); - v->dest_tile = TILE_XY(MapSizeX() / 2, MapSizeY() / 2); + v->dest_tile = TileXY(MapSizeX() / 2, MapSizeY() / 2); v->age = 0; // Allocate shadow too? @@ -912,7 +912,7 @@ static void Disaster7_Init(void) SetDParam(0, i->town->index); AddNewsItem(STR_B005_COAL_MINE_SUBSIDENCE_LEAVES, - NEWS_FLAGS(NM_THIN,NF_VIEWPORT|NF_TILE,NT_ACCIDENT,0), i->xy + TILE_XY(1,1), 0); + NEWS_FLAGS(NM_THIN,NF_VIEWPORT|NF_TILE,NT_ACCIDENT,0), i->xy + TileDiffXY(1, 1), 0); { TileIndex tile = i->xy; |