Road related functions. More...
#include "direction_type.h"
#include "road_type.h"
Go to the source code of this file.
Functions | |
void | DrawRoadDepotSprite (int x, int y, DiagDirection dir, RoadType rt) |
void | UpdateNearestTownForRoadTiles (bool invalidate) |
Updates cached nearest town for all road tiles. |
Road related functions.
Definition in file road_cmd.h.
void UpdateNearestTownForRoadTiles | ( | bool | invalidate | ) |
Updates cached nearest town for all road tiles.
invalidate | are we just invalidating cached data? |
Definition at line 1269 of file road_cmd.cpp.
References HasTownOwnedRoad(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tcache, Tzero >::PoolItem< Tpool >::index, IsTileType(), MapSize(), MP_ROAD, and SetTownIndex().
Referenced by CmdFoundTown(), FoundTownWindow::OnClick(), and Town::PostDestructor().