Merge branch 'master' into jgrpp

# Conflicts:
#	src/openttd.cpp
#	src/video/dedicated_v.cpp
This commit is contained in:
Jonathan G Rennison
2023-03-16 20:43:11 +00:00
9 changed files with 264 additions and 116 deletions

View File

@@ -252,17 +252,6 @@ void VideoDriver_Dedicated::MainLoop()
/* If SwitchMode is SM_LOAD_GAME, it means that the user used the '-g' options */
if (_switch_mode != SM_LOAD_GAME) {
StartNewGameWithoutGUI(GENERATE_NEW_SEED);
} else {
/* First we need to test if the savegame can be loaded, else we will end up playing the
* intro game... */
if (SaveOrLoad(_file_to_saveload.name, _file_to_saveload.file_op, _file_to_saveload.detail_ftype, BASE_DIR) == SL_ERROR) {
/* Loading failed, pop out.. */
DEBUG(net, 0, "Loading requested map failed; closing server.");
return;
} else {
/* We can load this game, so go ahead */
_switch_mode = SM_LOAD_GAME;
}
}
this->is_game_threaded = false;