mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile.
This commit is contained in:
parent
331d4d2d45
commit
67ac7124b1
@ -98,7 +98,7 @@
|
|||||||
if (st->owner != _current_company) return INVALID_TILE;
|
if (st->owner != _current_company) return INVALID_TILE;
|
||||||
if ((st->facilities & FACIL_AIRPORT) == 0) 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)
|
/* static */ AIAirport::AirportType AIAirport::GetAirportType(TileIndex tile)
|
||||||
|
Loading…
Reference in New Issue
Block a user