diff options
author | tron <tron@openttd.org> | 2005-06-25 06:15:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-25 06:15:43 +0000 |
commit | 2b73dec56791a1aa3b2e3c333ae2d4673a7cfbfc (patch) | |
tree | 3374c2cd95704c5e34c2a7c62b0ba647c4002e7f /vehicle.c | |
parent | 80760b4f69bc4f552ff22593d19365662e62caf3 (diff) | |
download | openttd-2b73dec56791a1aa3b2e3c333ae2d4673a7cfbfc.tar.xz |
(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -592,7 +592,7 @@ static void ChimneySmokeTick(Vehicle *v) BeginVehicleMove(v); - tile = TILE_FROM_XY(v->x_pos, v->y_pos); + tile = TileVirtXY(v->x_pos, v->y_pos); if (!IsTileType(tile, MP_INDUSTRY)) { EndVehicleMove(v); DeleteVehicle(v); @@ -1094,7 +1094,7 @@ static void BubbleTick(Vehicle *v) et++; SndPlayVehicleFx(SND_31_EXTRACT, v); - tile = TILE_FROM_XY(v->x_pos, v->y_pos); + tile = TileVirtXY(v->x_pos, v->y_pos); if (IsTileType(tile, MP_INDUSTRY) && _map5[tile] == 0xA2) { AddAnimatedTile(tile); @@ -1703,7 +1703,7 @@ bool GetNewVehiclePos(Vehicle *v, GetNewVehiclePosResult *gp) gp->x = x; gp->y = y; gp->old_tile = v->tile; - gp->new_tile = TILE_FROM_XY(x,y); + gp->new_tile = TileVirtXY(x, y); return gp->old_tile == gp->new_tile; } |