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

Function SetNewLandscapeType

src/genworld_gui.cpp:69–74  ·  view source on GitHub ↗

* Changes landscape type and sets genworld window dirty * @param landscape new landscape type */

Source from the content-addressed store, hash-verified

67 * @param landscape new landscape type
68 */
69void SetNewLandscapeType(LandscapeType landscape)
70{
71 _settings_newgame.game_creation.landscape = landscape;
72 InvalidateWindowClassesData(WC_SELECT_GAME);
73 InvalidateWindowClassesData(WC_GENERATE_LANDSCAPE);
74}
75
76/** Widgets of GenerateLandscapeWindow when generating world */
77static constexpr std::initializer_list<NWidgetPart> _nested_generate_landscape_widgets = {

Callers 2

OnClickMethod · 0.85
OnClickMethod · 0.85

Calls 1

Tested by

no test coverage detected