src/town.h
changeset 9387 ede823d445f5
parent 9358 2e1e4d2f71dd
child 9413 7042a8ec3fa8
equal deleted inserted replaced
9386:f3fd0650f9d5 9387:ede823d445f5
   343 Town *CalcClosestTownFromTile(TileIndex tile, uint threshold);
   343 Town *CalcClosestTownFromTile(TileIndex tile, uint threshold);
   344 
   344 
   345 #define FOR_ALL_TOWNS_FROM(t, start) for (t = GetTown(start); t != NULL; t = (t->index + 1U < GetTownPoolSize()) ? GetTown(t->index + 1U) : NULL) if (t->IsValid())
   345 #define FOR_ALL_TOWNS_FROM(t, start) for (t = GetTown(start); t != NULL; t = (t->index + 1U < GetTownPoolSize()) ? GetTown(t->index + 1U) : NULL) if (t->IsValid())
   346 #define FOR_ALL_TOWNS(t) FOR_ALL_TOWNS_FROM(t, 0)
   346 #define FOR_ALL_TOWNS(t) FOR_ALL_TOWNS_FROM(t, 0)
   347 
   347 
   348 extern bool _town_sort_dirty;
       
   349 extern byte _town_sort_order;
       
   350 extern const Town **_town_sort;
       
   351 
       
   352 extern Town *_cleared_town;
   348 extern Town *_cleared_town;
   353 extern int _cleared_town_rating;
   349 extern int _cleared_town_rating;
   354 
   350 
   355 void ResetHouses();
   351 void ResetHouses();
   356 
   352