From a733fede9b21d5e74a007ed64263bc07535ee25c Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 24 Jun 2005 12:38:35 +0000 Subject: (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile" --- aircraft_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'aircraft_cmd.c') 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; -- cgit v1.2.3-54-g00ecf