mirror of https://github.com/OpenTTD/OpenTTD
(svn r1161) Don't make redundant GetAirport() calls, use the cached value
parent
c7b5cc3787
commit
b9779176d5
|
@ -1682,8 +1682,7 @@ END_TILE_LOOP(tile_cur, w,h,tile)
|
||||||
uint i;
|
uint i;
|
||||||
|
|
||||||
for (i = 0; i < afc->nof_depots; ++i)
|
for (i = 0; i < afc->nof_depots; ++i)
|
||||||
DeleteWindowById(WC_VEHICLE_DEPOT,
|
DeleteWindowById(WC_VEHICLE_DEPOT, tile + afc->airport_depots[i]);
|
||||||
tile + GetAirport(st->airport_type)->airport_depots[i]);
|
|
||||||
st->airport_tile = 0;
|
st->airport_tile = 0;
|
||||||
st->facilities &= ~FACIL_AIRPORT;
|
st->facilities &= ~FACIL_AIRPORT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue