MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / UpdateAllTownVirtCoords

Function UpdateAllTownVirtCoords

src/town_cmd.cpp:422–427  ·  view source on GitHub ↗

Update the virtual coords needed to draw the town sign for all towns. */

Source from the content-addressed store, hash-verified

420
421/** Update the virtual coords needed to draw the town sign for all towns. */
422void UpdateAllTownVirtCoords()
423{
424 for (Town *t : Town::Iterate()) {
425 t->UpdateVirtCoord();
426 }
427}
428
429/** Clear the cached_name of all towns. */
430void ClearAllTownCachedNames()

Callers 1

UpdateAllVirtCoordsFunction · 0.85

Calls 1

UpdateVirtCoordMethod · 0.45

Tested by

no test coverage detected