aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-01-13 21:01:42 -0500
committerPaul Gilbert2017-01-13 21:01:42 -0500
commit1fcb79093c0c757dd1fbcd642cc8a48f5dca7b89 (patch)
tree2ac1d4e85aaa71613df24fd883ca21c02e5a12ff
parent635bbed7c3f1146bde21af7e1af7783c943192b2 (diff)
downloadscummvm-rg350-1fcb79093c0c757dd1fbcd642cc8a48f5dca7b89.tar.gz
scummvm-rg350-1fcb79093c0c757dd1fbcd642cc8a48f5dca7b89.tar.bz2
scummvm-rg350-1fcb79093c0c757dd1fbcd642cc8a48f5dca7b89.zip
TITANIC: Fix breaking long stick dispensor glass with hammer
-rw-r--r--engines/titanic/game/long_stick_dispenser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/game/long_stick_dispenser.cpp b/engines/titanic/game/long_stick_dispenser.cpp
index e0c698c103..bf2dae53be 100644
--- a/engines/titanic/game/long_stick_dispenser.cpp
+++ b/engines/titanic/game/long_stick_dispenser.cpp
@@ -56,12 +56,12 @@ void CLongStickDispenser::load(SimpleFile *file) {
}
bool CLongStickDispenser::PuzzleSolvedMsg(CPuzzleSolvedMsg *msg) {
- if (!_fieldBC && !_fieldC4 && !_fieldC0) {
+ if (!_fieldBC && _fieldC4 == 1 && !_fieldC0) {
CStatusChangeMsg statusMsg;
statusMsg.execute("ShatterGlass");
_fieldC0 = 1;
loadFrame(19);
- } else if (_fieldC0) {
+ } else if (_fieldC0 != 1) {
playSound(g_vm->isGerman() ? "z#594.wav" : "z#63.wav");
petDisplayMessage(1, GLASS_IS_UNBREAKABLE);
}