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

Function ClearAllTownCachedNames

src/town_cmd.cpp:430–435  ·  view source on GitHub ↗

Clear the cached_name of all towns. */

Source from the content-addressed store, hash-verified

428
429/** Clear the cached_name of all towns. */
430void ClearAllTownCachedNames()
431{
432 for (Town *t : Town::Iterate()) {
433 t->cached_name.clear();
434 }
435}
436
437/**
438 * Change the town's population as recorded in the town cache, town label, and town directory.

Callers 1

ClearAllCachedNamesFunction · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected