1
0
Fork 0

(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile.

release/0.7
rubidium 2009-01-18 17:03:57 +00:00
parent 331d4d2d45
commit 67ac7124b1
1 changed files with 1 additions and 1 deletions

View File

@ -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)