1
0
Fork 0

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

release/0.4.5
tron 2004-12-18 18:19:49 +00:00
parent c7b5cc3787
commit b9779176d5
1 changed files with 1 additions and 2 deletions

View File

@ -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;