diff options
author | Paul Gilbert | 2017-01-15 19:23:49 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-15 19:23:49 -0500 |
commit | ad1bb852eb74c336c84bedf2999c0040bf7a04bd (patch) | |
tree | 3b732c2683c14df075afb7dc2e16e9343f9297b7 /engines/titanic/npcs | |
parent | 8b5196da53f2e9f92f5a6f22a1073833e51123f9 (diff) | |
download | scummvm-rg350-ad1bb852eb74c336c84bedf2999c0040bf7a04bd.tar.gz scummvm-rg350-ad1bb852eb74c336c84bedf2999c0040bf7a04bd.tar.bz2 scummvm-rg350-ad1bb852eb74c336c84bedf2999c0040bf7a04bd.zip |
TITANIC: Fix SuccUBus not eating chicken when it has condiments
Diffstat (limited to 'engines/titanic/npcs')
-rw-r--r-- | engines/titanic/npcs/succubus.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/titanic/npcs/succubus.cpp b/engines/titanic/npcs/succubus.cpp index 1d8e0e4f13..b69bfbce4c 100644 --- a/engines/titanic/npcs/succubus.cpp +++ b/engines/titanic/npcs/succubus.cpp @@ -281,7 +281,7 @@ bool CSuccUBus::SubAcceptCCarryMsg(CSubAcceptCCarryMsg *msg) { pet->phonographAction(""); CChicken *chicken = dynamic_cast<CChicken *>(item); - bool chickenFlag = chicken ? chicken->_condiment != "None" : false; + bool chickenFlag = chicken ? chicken->_condiment == "None" : false; item->setVisible(false); if (_startFrame1 >= 0) { @@ -290,6 +290,7 @@ bool CSuccUBus::SubAcceptCCarryMsg(CSubAcceptCCarryMsg *msg) { } if (!chickenFlag) { + // Not chicken, or chicken with condiments _field188 = 1; item->addMail(roomFlags); petSetArea(PET_REMOTE); @@ -297,6 +298,8 @@ bool CSuccUBus::SubAcceptCCarryMsg(CSubAcceptCCarryMsg *msg) { CSUBTransition transMsg; transMsg.execute(this); } else { + // Chicken without condiments was passed to SuccUBus, so it'll + // eat it immediately if (_okStartFrame >= 0) { startTalking(this, 70219, findView()); playMovie(_okStartFrame, _okEndFrame, 0); |