diff options
author | Eugene Sandulenko | 2019-07-12 22:30:00 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:18 +0200 |
commit | a869eb00a0d246db8add300e083d831b70dea8ab (patch) | |
tree | 669871a39158dba2ed85e63fad0bc7345ac519d5 | |
parent | a7e17c07f7df65095c8c02a038204244d791fc39 (diff) | |
download | scummvm-rg350-a869eb00a0d246db8add300e083d831b70dea8ab.tar.gz scummvm-rg350-a869eb00a0d246db8add300e083d831b70dea8ab.tar.bz2 scummvm-rg350-a869eb00a0d246db8add300e083d831b70dea8ab.zip |
HDB: Restore bootparam and save/load from the command line funcitonality
-rw-r--r-- | engines/hdb/hdb.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 5af3dff240..eb961f3ce6 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -755,7 +755,6 @@ Common::Error HDBGame::run() { tile->load(tileStream); #endif -#if 0 if (ConfMan.hasKey("boot_param")) { char mapname[10]; int level = ConfMan.getInt("boot_param"); @@ -766,11 +765,12 @@ Common::Error HDBGame::run() { snprintf(mapname, 10, "MAP%02d", level); startMap(mapname); + + _gameState = GAME_PLAY; } else { - if (!ConfMan.hasKey("save_slot") || (loadGameState(ConfMan.getInt("save_slot")).getCode() != Common::kNoError)) - startMap("MAP00"); + if (ConfMan.hasKey("save_slot") && loadGameState(ConfMan.getInt("save_slot")).getCode() == Common::kNoError) + _gameState = GAME_PLAY; } -#endif //_window->openDialog("Sgt. Filibuster", 0, "You address me as 'sarge' or 'sergeant' or get your snappin' teeth kicked in! Got me?", 0, NULL); |