equal
deleted
inserted
replaced
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 |