mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
Fix #3460: Starting server with bad save file ends with bad game state
This commit is contained in:
12
src/rct2.c
12
src/rct2.c
@@ -360,15 +360,17 @@ bool rct2_open_file(const char *path)
|
||||
|
||||
if (_stricmp(extension, "sv6") == 0) {
|
||||
strcpy((char*)gRCT2AddressSavedGamesPath2, path);
|
||||
game_load_save(path);
|
||||
gFirstTimeSave = 0;
|
||||
return true;
|
||||
if (game_load_save(path)) {
|
||||
gFirstTimeSave = 0;
|
||||
return true;
|
||||
}
|
||||
} else if (_stricmp(extension, "sc6") == 0) {
|
||||
// TODO scenario install
|
||||
rct_scenario_basic scenarioBasic;
|
||||
strcpy(scenarioBasic.path, path);
|
||||
scenario_load_and_play_from_path(scenarioBasic.path);
|
||||
return true;
|
||||
if (scenario_load_and_play_from_path(scenarioBasic.path)) {
|
||||
return true;
|
||||
}
|
||||
} else if (_stricmp(extension, "td6") == 0 || _stricmp(extension, "td4") == 0) {
|
||||
// TODO track design install
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user