summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-07 17:02:43 +0000
committertron <tron@openttd.org>2005-01-07 17:02:43 +0000
commit7ca6b2b8b0d6f66966fa2ff01e3e9961314dfcc4 (patch)
treee4137b60a824b45ce09f668d58520e36dba10256 /aircraft_cmd.c
parentf5c33e50733c46cee14e84ade6da0c171d96064b (diff)
downloadopenttd-7ca6b2b8b0d6f66966fa2ff01e3e9961314dfcc4.tar.xz
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 7d52329d9..0009078ef 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -146,8 +146,8 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2)
v->tile = tile;
// u->tile = 0;
- x = GET_TILE_X(tile)*16 + 5;
- y = GET_TILE_Y(tile)*16 + 3;
+ x = TileX(tile) * 16 + 5;
+ y = TileY(tile) * 16 + 3;
v->x_pos = u->x_pos = x;
v->y_pos = u->y_pos = y;
@@ -739,8 +739,8 @@ static bool Aircraft_5(Vehicle *v)
uint tile = st->airport_tile;
if (tile == 0) tile = st->xy;
// xy of destination
- x = GET_TILE_X(tile)*16;
- y = GET_TILE_Y(tile)*16;
+ x = TileX(tile) * 16;
+ y = TileY(tile) * 16;
}
// get airport moving data