diff options
author | Eugene Sandulenko | 2019-07-29 00:18:49 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:29 +0200 |
commit | d1b906a442536a6f6b7658a11dbb0e6718a56755 (patch) | |
tree | 68e648595766e6169712e5a2890a46edac2ac6f0 /engines | |
parent | 67d45170ede1288967dd3b3c241030a42e925a4d (diff) | |
download | scummvm-rg350-d1b906a442536a6f6b7658a11dbb0e6718a56755.tar.gz scummvm-rg350-d1b906a442536a6f6b7658a11dbb0e6718a56755.tar.bz2 scummvm-rg350-d1b906a442536a6f6b7658a11dbb0e6718a56755.zip |
HDB: Implement rest of the demo differences
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/detection.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/gfx.cpp | 3 | ||||
-rw-r--r-- | engines/hdb/menu.cpp | 9 | ||||
-rw-r--r-- | engines/hdb/window.cpp | 2 |
4 files changed, 10 insertions, 6 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp index 63563ba838..6587b3c266 100644 --- a/engines/hdb/detection.cpp +++ b/engines/hdb/detection.cpp @@ -121,7 +121,7 @@ static const ADGameDescription gameDescriptions[] = { }, { "hdb", - "alt", + "Handango", AD_ENTRY1s("hyperdemo.msd", "2d4457b284a940b7058b36e5706b9951", 3094241), Common::EN_ANY, Common::kPlatformUnknown, // PPC diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 3aa37e928c..80e5ac832a 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -960,6 +960,9 @@ void Gfx::getCursor(int *x, int *y) { } void Gfx::turnOnBonusStars(int which) { + if (!g_hdb->isDemo()) + return; + _starsInfo.active = true; for (int i = 0; i < 10; i++) _starsInfo.starAngle[i] = (36 * (i + 1)) - 10; 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(); diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index 6c2dcc8a73..06332246ab 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -1320,7 +1320,7 @@ void Window::loadPanicZoneGfx() { } void Window::drawPanicZone() { - if (!_pzInfo.active) + if (!_pzInfo.active || !g_hdb->isDemo()) return; switch (_pzInfo.sequence) { |