From 67ac7124b150fccc75005059cf4821be2b2f75ee Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 18 Jan 2009 17:03:57 +0000 Subject: (svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile. --- src/ai/api/ai_airport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ai/api/ai_airport.cpp b/src/ai/api/ai_airport.cpp index 3e435d7bc..cb8693255 100644 --- a/src/ai/api/ai_airport.cpp +++ b/src/ai/api/ai_airport.cpp @@ -98,7 +98,7 @@ if (st->owner != _current_company) return INVALID_TILE; if ((st->facilities & FACIL_AIRPORT) == 0) return INVALID_TILE; - return ::ToTileIndexDiff(st->Airport()->airport_depots[0]) + st->xy; + return ::ToTileIndexDiff(st->Airport()->airport_depots[0]) + st->airport_tile; } /* static */ AIAirport::AirportType AIAirport::GetAirportType(TileIndex tile) -- cgit v1.2.3-70-g09d2