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;
|
||||
|
||||
for (i = 0; i < afc->nof_depots; ++i)
|
||||
DeleteWindowById(WC_VEHICLE_DEPOT,
|
||||
tile + GetAirport(st->airport_type)->airport_depots[i]);
|
||||
DeleteWindowById(WC_VEHICLE_DEPOT, tile + afc->airport_depots[i]);
|
||||
st->airport_tile = 0;
|
||||
st->facilities &= ~FACIL_AIRPORT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue