aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/npcs/doorbot.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-10-28 20:19:35 -0400
committerPaul Gilbert2016-10-28 20:19:35 -0400
commitf7c7f11435c96781d02c8c44c29e9da08392eec2 (patch)
treeb56fbe645b3f902a29310e847baf1c7007799cab /engines/titanic/npcs/doorbot.cpp
parentaee3599e6bc2fd2cf8cd627de7f607365302efa6 (diff)
downloadscummvm-rg350-f7c7f11435c96781d02c8c44c29e9da08392eec2.tar.gz
scummvm-rg350-f7c7f11435c96781d02c8c44c29e9da08392eec2.tar.bz2
scummvm-rg350-f7c7f11435c96781d02c8c44c29e9da08392eec2.zip
TITANIC: Renames and adding debugging
Diffstat (limited to 'engines/titanic/npcs/doorbot.cpp')
-rw-r--r--engines/titanic/npcs/doorbot.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/titanic/npcs/doorbot.cpp b/engines/titanic/npcs/doorbot.cpp
index d26f4bb828..4e08dda446 100644
--- a/engines/titanic/npcs/doorbot.cpp
+++ b/engines/titanic/npcs/doorbot.cpp
@@ -22,6 +22,7 @@
#include "titanic/npcs/doorbot.h"
#include "titanic/core/room_item.h"
+#include "titanic/titanic.h"
namespace Titanic {
@@ -81,6 +82,8 @@ void CDoorbot::load(SimpleFile *file) {
}
bool CDoorbot::MovieEndMsg(CMovieEndMsg *msg) {
+ debugC(ERROR_DETAILED, kDebugScripts, "CDoorbot MovieEndMsg flags=%x v=%d", _npcFlags, _field108);
+
if (_npcFlags & NPCFLAG_DOORBOT_INTRO) {
switch (_field108) {
case 3:
@@ -539,13 +542,15 @@ bool CDoorbot::EnterViewMsg(CEnterViewMsg *msg) {
}
bool CDoorbot::ActMsg(CActMsg *msg) {
+ debugC(ERROR_DETAILED, kDebugScripts, "CDoorbot ActMsg action=%s v108=%d v110=%d v114=%d",
+ msg->_action.c_str(), _field108, _field110, _field114);
+
if (msg->_action == "DoorbotPlayerPressedTopButton") {
disableMouse();
startTalking(this, 221471);
} else if (msg->_action == "DoorbotPlayerPressedMiddleButton") {
startTalking(this, 221470);
- }
- else if (msg->_action == "DoorbotPlayerPressedBottomButton") {
+ } else if (msg->_action == "DoorbotPlayerPressedBottomButton") {
startTalking(this, 221469);
} else if (msg->_action == "DoorbotReachedEmbLobby") {
startTalking(this, 221472);