aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-29 22:52:33 +0200
committerEugene Sandulenko2019-09-03 17:17:29 +0200
commit6e67fe35b900180d186289e6fadc4fd4904c899a (patch)
treed254ad2b200eb05e2cd7dab7a0ead099dbbb9186
parentd1b906a442536a6f6b7658a11dbb0e6718a56755 (diff)
downloadscummvm-rg350-6e67fe35b900180d186289e6fadc4fd4904c899a.tar.gz
scummvm-rg350-6e67fe35b900180d186289e6fadc4fd4904c899a.tar.bz2
scummvm-rg350-6e67fe35b900180d186289e6fadc4fd4904c899a.zip
HDB: Even more demo differences
-rw-r--r--engines/hdb/lua-script.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index 082fa04fbf..f2552b44e0 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -977,13 +977,15 @@ static int animation(lua_State *L) {
break;
case 1:
g_hdb->_ai->addAnimateTarget((int)x, (int)y, 0, 3, ANIM_NORMAL, false, false, GROUP_EXPLOSION_BOOM_SIT);
- if (playsnd)
- g_hdb->_sound->playSound(SND_BARREL_EXPLODE);
+ if (!g_hdb->isDemo())
+ if (playsnd)
+ g_hdb->_sound->playSound(SND_BARREL_EXPLODE);
break;
case 2:
g_hdb->_ai->addAnimateTarget((int)x, (int)y, 0, 3, ANIM_FAST, false, false, GROUP_STEAM_PUFF_SIT);
- if (playsnd)
- g_hdb->_sound->playSound(SND_BARREL_MELTING);
+ if (!g_hdb->isDemo())
+ if (playsnd)
+ g_hdb->_sound->playSound(SND_BARREL_MELTING);
break;
case 3:
g_hdb->_ai->addAnimateTarget((int)x, (int)y, 0, 7, ANIM_NORMAL, false, false, TELEPORT_FLASH);