mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r16731) -Fix [NoAI]: AIDepotList contained wrong tiles for hangars when st->xy != st->airport_tile.
This commit is contained in:
parent
840ac11452
commit
bed99fdaec
@ -25,7 +25,7 @@ AIDepotList::AIDepotList(AITile::TransportType transport_type)
|
|||||||
if (st->owner == ::_current_company) {
|
if (st->owner == ::_current_company) {
|
||||||
const AirportFTAClass *afc = st->Airport();
|
const AirportFTAClass *afc = st->Airport();
|
||||||
for (uint i = 0; i < afc->nof_depots; i++) {
|
for (uint i = 0; i < afc->nof_depots; i++) {
|
||||||
this->AddItem(st->xy + ToTileIndexDiff(afc->airport_depots[i]));
|
this->AddItem(st->airport_tile + ToTileIndexDiff(afc->airport_depots[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user