aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/carry/photograph.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-27 12:10:37 -0400
committerPaul Gilbert2016-08-27 12:10:37 -0400
commitc1b6fc3824018118618685fcbfcabe413e865531 (patch)
tree7f8f9e0bd248e7fd6f4fbcbc0e5d2f9c1cb6aa96 /engines/titanic/carry/photograph.cpp
parent40ec26b3439eb82e5bf8bff82529c16d34a5ed94 (diff)
downloadscummvm-rg350-c1b6fc3824018118618685fcbfcabe413e865531.tar.gz
scummvm-rg350-c1b6fc3824018118618685fcbfcabe413e865531.tar.bz2
scummvm-rg350-c1b6fc3824018118618685fcbfcabe413e865531.zip
TITANIC: Implemented game pickup classes
Diffstat (limited to 'engines/titanic/carry/photograph.cpp')
-rw-r--r--engines/titanic/carry/photograph.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/titanic/carry/photograph.cpp b/engines/titanic/carry/photograph.cpp
index 7f32a0623d..039efd0252 100644
--- a/engines/titanic/carry/photograph.cpp
+++ b/engines/titanic/carry/photograph.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/carry/photograph.h"
+#include "titanic/core/dont_save_file_item.h"
#include "titanic/core/room_item.h"
namespace Titanic {
@@ -59,8 +60,12 @@ bool CPhotograph::MouseDragEndMsg(CMouseDragEndMsg *msg) {
_v1 = 0;
CGameObject *target = msg->_dropTarget;
- if (target && target->getName() != "NavigationComputer") {
- warning("TODO: CPhotograph::MouseDragEndMsg");
+ if (target && target->isEquals("NavigationComputer")) {
+ moveUnder(getDontSave());
+ makeDirty();
+ playSound("a#46.wav");
+ starFn1(14);
+ showMouse();
return true;
} else {
return CCarry::MouseDragEndMsg(msg);
@@ -78,7 +83,7 @@ bool CPhotograph::MouseDragStartMsg(CMouseDragStartMsg *msg) {
}
bool CPhotograph::PETGainedObjectMsg(CPETGainedObjectMsg *msg) {
- if (getRoom()->getName() == "Home") {
+ if (getRoom()->isEquals("Home")) {
CActMsg actMsg("PlayerPutsPhotoInPET");
actMsg.execute("Doorbot");
}