aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/menu.cpp')
-rw-r--r--engines/hdb/menu.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp
index 7bd457aa26..537035bcb3 100644
--- a/engines/hdb/menu.cpp
+++ b/engines/hdb/menu.cpp
@@ -1339,10 +1339,11 @@ void Menu::processInput(int x, int y) {
_warpActive = 0;
char string[16];
- if (map < 10)
- sprintf(string, "MAP0%d", map);
- else
- sprintf(string, "MAP%d", map);
+ sprintf(string, "MAP%02d", map);
+
+ if (g_hdb->isDemo())
+ strcat(string, "_DEMO");
+
freeMenu();
g_hdb->setGameState(GAME_PLAY);
g_hdb->_sound->stopMusic();