summaryrefslogtreecommitdiff
path: root/src/ai/api
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
commit67ac7124b150fccc75005059cf4821be2b2f75ee (patch)
tree28939f62037606fda8fb04c0f662cf884dba2f89 /src/ai/api
parent331d4d2d45beafbaaf02aa2d3a2a8a6e8d2e2068 (diff)
downloadopenttd-67ac7124b150fccc75005059cf4821be2b2f75ee.tar.xz
(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile.
Diffstat (limited to 'src/ai/api')
-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)