summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-18 17:03:57 +0000
committerrubidium <rubidium@openttd.org>2009-01-18 17:03:57 +0000
commita0e24cc6c9eb43d4cc72bff266720403a30a47f7 (patch)
tree28939f62037606fda8fb04c0f662cf884dba2f89
parent55e8be50452bd8ce4ba253d3ef56dd9d407b7b73 (diff)
downloadopenttd-a0e24cc6c9eb43d4cc72bff266720403a30a47f7.tar.xz
(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile.
-rw-r--r--src/ai/api/ai_airport.cpp2
1 files changed, 1 insertions, 1 deletions
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)