diff options
-rw-r--r-- | engines/hdb/hdb.cpp | 10 |
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); |