Mercurial > hg > openttd
changeset 10805:b115482f4edb draft
(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 18 Jan 2009 17:03:57 +0000 |
parents | 2c9373a99b65 |
children | 0f5b252d52f1 |
files | src/ai/api/ai_airport.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)