(svn r1161) Don't make redundant GetAirport() calls, use the cached value

pull/155/head
tron 20 years ago
parent 8361617f50
commit e33a63ee8d

@ -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…
Cancel
Save