diff options
author | tron <tron@openttd.org> | 2005-06-24 12:38:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-24 12:38:35 +0000 |
commit | 3154e7148d00f0203760aefbc6f8a5bd210cc30c (patch) | |
tree | 17004bd894946da466a10e50a86ff66225cf8896 /aircraft_cmd.c | |
parent | 3448729ff36ca9e91d91c256d9a5381ba901230b (diff) | |
download | openttd-3154e7148d00f0203760aefbc6f8a5bd210cc30c.tar.xz |
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index f17a36216..aa9f82225 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -844,7 +844,8 @@ static bool AircraftController(Vehicle *v) // prevent going to 0,0 if airport is deleted. { - uint tile = st->airport_tile; + TileIndex tile = st->airport_tile; + if (tile == 0) tile = st->xy; // xy of destination x = TileX(tile) * 16; |