aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-20 11:37:11 +0200
committerEugene Sandulenko2019-09-03 17:17:25 +0200
commitc34824de58782026091324aca843a236e531d655 (patch)
tree3a49cb8c3ef33b74e6d71dc4bad1b0e0729b9590
parentf778e08a1ae5ee99d4eb3a244b113f3e3ffb2d02 (diff)
downloadscummvm-rg350-c34824de58782026091324aca843a236e531d655.tar.gz
scummvm-rg350-c34824de58782026091324aca843a236e531d655.tar.bz2
scummvm-rg350-c34824de58782026091324aca843a236e531d655.zip
HDB: Added support for CINE_OUTRO from the command line (level 31)
-rw-r--r--engines/hdb/hdb.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index b404ee4736..bb495a8260 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -864,13 +864,17 @@ Common::Error HDBGame::run() {
char mapname[10];
int arg = ConfMan.getInt("boot_param");
int actionMode = MIN(arg / 100, 1);
- int level = MIN(arg % 100, 30);
+ int level = MIN(arg % 100, 31);
setActionMode(actionMode);
- debug("Starting level %d in %s", level, getActionMode() ? "Action Mode" : "Puzzle Mode");
+ if (level <= 30)
+ snprintf(mapname, 10, "MAP%02d", level);
+ else
+ strcpy(mapname, "CINE_OUTRO");
+
+ debug("Starting level %s in %s", mapname, getActionMode() ? "Action Mode" : "Puzzle Mode");
- snprintf(mapname, 10, "MAP%02d", level);
_ai->clearPersistent();
startMap(mapname);