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

Function UpdateVoidTiles

src/saveload/afterload.cpp:206–210  ·  view source on GitHub ↗

Up to revision 1413 the invisible tiles at the southern border have not been * MP_VOID, even though they should have. This is fixed by this function */

Source from the content-addressed store, hash-verified

204 * MP_VOID, even though they should have. This is fixed by this function
205 */
206static void UpdateVoidTiles()
207{
208 for (uint x = 0; x < Map::SizeX(); x++) MakeVoid(TileXY(x, Map::MaxY()));
209 for (uint y = 0; y < Map::SizeY(); y++) MakeVoid(TileXY(Map::MaxX(), y));
210}
211
212static inline RailType UpdateRailType(RailType rt, RailType min)
213{

Callers 1

AfterLoadGameFunction · 0.85

Calls 2

MakeVoidFunction · 0.85
TileXYFunction · 0.85

Tested by

no test coverage detected