mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-11 05:35:52 +01:00
(svn r15573) -Fix (r15538): Terrain type and sea level couldn't be changed in the scenario editor.
This commit is contained in:
parent
13f390be3e
commit
1104e10695
@ -587,13 +587,21 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GLAND_TERRAIN_PULLDOWN:
|
case GLAND_TERRAIN_PULLDOWN: {
|
||||||
|
byte old_gm = _game_mode;
|
||||||
|
_game_mode = GM_MENU;
|
||||||
IConsoleSetSetting("difficulty.terrain_type", index);
|
IConsoleSetSetting("difficulty.terrain_type", index);
|
||||||
|
_game_mode = old_gm;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case GLAND_WATER_PULLDOWN:
|
case GLAND_WATER_PULLDOWN: {
|
||||||
|
byte old_gm = _game_mode;
|
||||||
|
_game_mode = GM_MENU;
|
||||||
IConsoleSetSetting("difficulty.quantity_sea_lakes", index);
|
IConsoleSetSetting("difficulty.quantity_sea_lakes", index);
|
||||||
|
_game_mode = old_gm;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user