[Scummvm-git-logs] scummvm master -> 8a7dba17b78dcd712a9dd6f83e885c8ceec536c7
dreammaster
dreammaster at scummvm.org
Mon Jul 10 00:50:18 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8a7dba17b7 TITANIC: Fixes for correctly display of drop targets
Commit: 8a7dba17b78dcd712a9dd6f83e885c8ceec536c7
https://github.com/scummvm/scummvm/commit/8a7dba17b78dcd712a9dd6f83e885c8ceec536c7
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-07-09T18:50:11-04:00
Commit Message:
TITANIC: Fixes for correctly display of drop targets
Changed paths:
engines/titanic/core/drop_target.cpp
diff --git a/engines/titanic/core/drop_target.cpp b/engines/titanic/core/drop_target.cpp
index 99d30e4..51e4751 100644
--- a/engines/titanic/core/drop_target.cpp
+++ b/engines/titanic/core/drop_target.cpp
@@ -98,6 +98,7 @@ bool CDropTarget::DropObjectMsg(CDropObjectMsg *msg) {
if (_hideItem)
msg->_item->setVisible(false);
+ _itemName = msg->_item->getName();
CDropZoneGotObjectMsg gotMsg(this);
gotMsg.execute(msg->_item);
playSound(_soundName);
@@ -176,7 +177,7 @@ bool CDropTarget::DropZoneLostObjectMsg(CDropZoneLostObjectMsg *msg) {
obj->petAddToInventory();
}
- setVisible(true);
+ obj->setVisible(true);
CDropZoneLostObjectMsg lostMsg(this);
lostMsg.execute(obj);
}
More information about the Scummvm-git-logs
mailing list