From da5f1fa26544d35e3342f5c622db3a457adbc36c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 26 Jul 2019 22:16:05 +0200 Subject: HDB: Added demo-specific start code --- engines/hdb/hdb.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines/hdb') 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: -- cgit v1.2.3