diff options
author | Eugene Sandulenko | 2019-07-26 22:16:05 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:29 +0200 |
commit | da5f1fa26544d35e3342f5c622db3a457adbc36c (patch) | |
tree | 3d25c31213f3d42e1e052719c1998b63f8b445b1 /engines/hdb/hdb.cpp | |
parent | ac90e5541e04f624e32301c8e8747c31385253ad (diff) | |
download | scummvm-rg350-da5f1fa26544d35e3342f5c622db3a457adbc36c.tar.gz scummvm-rg350-da5f1fa26544d35e3342f5c622db3a457adbc36c.tar.bz2 scummvm-rg350-da5f1fa26544d35e3342f5c622db3a457adbc36c.zip |
HDB: Added demo-specific start code
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index e58cae1ca2..900709ff8b 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -171,8 +171,14 @@ void HDBGame::changeGameState() { _ai->clearPersistent(); _timePlayed = 0; _timeSeconds = 0; - if (!startMap("CINE_INTRO")) - error("Can't load CINE_INTRO"); + + if (!isDemo()) { + if (!startMap("CINE_INTRO")) + error("Can't load CINE_INTRO"); + } else { + if (!startMap("CINE_INTRO_DEMO")) + error("Can't load CINE_INTRO_DEMO"); + } _gameState = GAME_PLAY; break; case GAME_PLAY: |