diff options
author | Paul Gilbert | 2016-12-18 18:31:46 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-12-18 18:31:46 -0500 |
commit | ee802724166c6cd8969493fac8660037fdd4774c (patch) | |
tree | 532de9bcfda41cfd470cb0e1b2ee03845e543363 /engines/titanic/carry | |
parent | cf061845ba68a6c2a7a84898c56b4d4ffc9b714e (diff) | |
download | scummvm-rg350-ee802724166c6cd8969493fac8660037fdd4774c.tar.gz scummvm-rg350-ee802724166c6cd8969493fac8660037fdd4774c.tar.bz2 scummvm-rg350-ee802724166c6cd8969493fac8660037fdd4774c.zip |
TITANIC: Fix returning items to inventory if drop doesn't work
Diffstat (limited to 'engines/titanic/carry')
-rw-r--r-- | engines/titanic/carry/carry.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/titanic/carry/carry.cpp b/engines/titanic/carry/carry.cpp index 670c3780d9..075b2b32b3 100644 --- a/engines/titanic/carry/carry.cpp +++ b/engines/titanic/carry/carry.cpp @@ -149,8 +149,7 @@ bool CCarry::MouseDragEndMsg(CMouseDragEndMsg *msg) { return true; } - CString viewName = getViewFullName(); - if (viewName.empty() || msg->_mousePos.y >= 360) { + if (!compareViewNameTo(_fullViewName) || msg->_mousePos.y >= 360) { sleep(250); petAddToInventory(); } else { @@ -184,8 +183,7 @@ bool CCarry::UseWithOtherMsg(CUseWithOtherMsg *msg) { CShowTextMsg textMsg(_string3); textMsg.execute("PET"); - _fullViewName = getViewFullName(); - if (_fullViewName.empty() || _bounds.top >= 360) { + if (!compareViewNameTo(_fullViewName) || _bounds.top >= 360) { sleep(250); petAddToInventory(); } else { |