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

Function IncreaseGeneratingWorldProgress

src/genworld_gui.cpp:1539–1543  ·  view source on GitHub ↗

* Increases the current stage of the world generation with one. * @param cls the current class we are in. * * Warning: this function isn't clever. Don't go from class 4 to 3. Go upwards, always. * Also, progress works if total is zero, total works if progress is zero. */

Source from the content-addressed store, hash-verified

1537 * Also, progress works if total is zero, total works if progress is zero.
1538 */
1539void IncreaseGeneratingWorldProgress(GenWorldProgress cls)
1540{
1541 /* In fact the param 'class' isn't needed.. but for some security reasons, we want it around */
1542 _SetGeneratingWorldProgress(cls, 1, 0);
1543}

Callers 11

PlaceInitialIndustryFunction · 0.85
CreateDesertOrRainForestFunction · 0.85
CreateRiversFunction · 0.85
GenerateLandscapeFunction · 0.85
GenerateObjectsFunction · 0.85
GenerateClearTileFunction · 0.85
_GenerateWorldFunction · 0.85
PlaceTreeGroupsFunction · 0.85
PlaceTreesRandomlyFunction · 0.85
GenerateTerrainPerlinFunction · 0.85
GenerateTownsFunction · 0.85

Calls 1

Tested by

no test coverage detected