(svn r19464) -Codechange: move GetHangarTile to Airport

This commit is contained in:
yexo
2010-03-19 09:58:46 +00:00
parent 414071d07f
commit f2743cd5ed
6 changed files with 13 additions and 13 deletions

View File

@@ -69,7 +69,7 @@ bool IsHangar(TileIndex t)
const AirportSpec *as = st->airport.GetSpec();
for (uint i = 0; i < as->nof_depots; i++) {
if (st->GetHangarTile(i) == t) return true;
if (st->airport.GetHangarTile(i) == t) return true;
}
return false;
@@ -2296,7 +2296,7 @@ static CommandCost RemoveAirport(TileIndex tile, DoCommandFlag flags)
const AirportSpec *as = st->airport.GetSpec();
for (uint i = 0; i < as->nof_depots; ++i) {
DeleteWindowById(
WC_VEHICLE_DEPOT, st->GetHangarTile(i)
WC_VEHICLE_DEPOT, st->airport.GetHangarTile(i)
);
}