diff options
author | celestar <celestar@openttd.org> | 2006-04-03 05:32:11 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-03 05:32:11 +0000 |
commit | 3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (patch) | |
tree | 7d8babf7cbe0b9ecf1ebc12e27848ef54f79d0e3 /aircraft_cmd.c | |
parent | a6403bd50a163434cb4a8a9354ac14ef6b0b90c6 (diff) | |
download | openttd-3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9.tar.xz |
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 1a9e123cf..86b62beaf 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -178,8 +178,8 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2) v->tile = tile; // u->tile = 0; - x = TileX(tile) * 16 + 5; - y = TileY(tile) * 16 + 3; + x = TileX(tile) * TILE_SIZE + 5; + y = TileY(tile) * TILE_SIZE + 3; v->x_pos = u->x_pos = x; v->y_pos = u->y_pos = y; @@ -765,8 +765,8 @@ static bool AircraftController(Vehicle *v) if (tile == 0) tile = st->xy; // xy of destination - x = TileX(tile) * 16; - y = TileY(tile) * 16; + x = TileX(tile) * TILE_SIZE; + y = TileY(tile) * TILE_SIZE; } // get airport moving data |