Changeset - r28714:0fa2ef263be5
[Not reviewed]
master
0 1 0
Patric Stout - 4 months ago 2024-02-07 23:33:24
truebrain@openttd.org
Fix #12029: don't show Sandbox Options in multiplayer (#12032)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -257,13 +257,13 @@ static CallBackFunction ToolbarOptionsCl
 
	 * to network clients. */
 
	if (!_networking || _network_server) {
 
		list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_AI_SETTINGS,          OME_AI_SETTINGS, false));
 
		list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_GAMESCRIPT_SETTINGS,  OME_GAMESCRIPT_SETTINGS, false));
 
	}
 
	list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_NEWGRF_SETTINGS,          OME_NEWGRFSETTINGS, false));
 
	if (_game_mode != GM_EDITOR) {
 
	if (_game_mode != GM_EDITOR && !_networking) {
 
		list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_SANDBOX_OPTIONS,      ONE_SANDBOX, false));
 
	}
 
	list.push_back(std::make_unique<DropDownListStringItem>(STR_SETTINGS_MENU_TRANSPARENCY_OPTIONS,     OME_TRANSPARENCIES, false));
 
	list.push_back(std::make_unique<DropDownListDividerItem>(-1, false));
 
	list.push_back(std::make_unique<DropDownListCheckedItem>(HasBit(_display_opt, DO_SHOW_TOWN_NAMES), STR_SETTINGS_MENU_TOWN_NAMES_DISPLAYED, OME_SHOW_TOWNNAMES, false));
 
	list.push_back(std::make_unique<DropDownListCheckedItem>(HasBit(_display_opt, DO_SHOW_STATION_NAMES), STR_SETTINGS_MENU_STATION_NAMES_DISPLAYED, OME_SHOW_STATIONNAMES, false));
0 comments (0 inline, 0 general)