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

Function FixTTDDepots

src/saveload/oldloader_sl.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101static void FixTTDDepots()
102{
103 for (const Depot *d : Depot::Iterate(252)) {
104 if (!IsDepotTile(d->xy) || GetDepotIndex(d->xy) != d->index) {
105 /** Workaround for SVXConverter bug, depots 252-255 could be invalid */
106 delete d;
107 }
108 }
109}
110
111static uint32_t RemapOldTownName(uint32_t townnameparts, uint8_t old_town_name_type)
112{

Callers 1

LoadTTDMainFunction · 0.85

Calls 2

IsDepotTileFunction · 0.85
GetDepotIndexFunction · 0.85

Tested by

no test coverage detected