From 20cdb0182a49bff7f5f61169be5d8879dbbb9930 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 15 Sep 2016 15:44:36 +0200 Subject: FULLPIPE: Added debug info to scene28 --- engines/fullpipe/scenes/scene28.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/scenes/scene28.cpp b/engines/fullpipe/scenes/scene28.cpp index d7d2d213ee..391b79be88 100644 --- a/engines/fullpipe/scenes/scene28.cpp +++ b/engines/fullpipe/scenes/scene28.cpp @@ -185,6 +185,8 @@ void sceneHandler28_turnOn2() { } void sceneHandler28_startWork1() { + debugC(2, kDebugSceneLogic, "scene28: startWork"); + g_fp->_aniMan->hide(); StaticANIObject *man = g_fp->_currentScene->getStaticANIObject1ById(ANI_MAN_28, -1); @@ -245,6 +247,8 @@ void sceneHandler28_lift6Start() { void sceneHandler28_clickLift(int keycode) { int x = 0; + debugC(2, kDebugSceneLogic, "scene28: clickLift(%d)", keycode); + switch (keycode) { case 0: x = 600; break; case 1: x = 824; break; @@ -258,6 +262,8 @@ void sceneHandler28_clickLift(int keycode) { if (abs(x - g_fp->_aniMan->_ox) > 1 || abs(472 - g_fp->_aniMan->_oy) > 1 || g_fp->_aniMan->_movement || g_fp->_aniMan->_statics->_staticsId != ST_MAN_UP) { + debugC(2, kDebugSceneLogic, "scene28: clickLift: overwrite"); + MessageQueue *mq = getCurrSceneSc2MotionController()->startMove(g_fp->_aniMan, x, 472, 1, ST_MAN_UP); if (mq) { ExCommand *ex = new ExCommand(0, 17, MSG_SC28_CLICKLIFT, 0, 0, 0, 1, 0, 0, 0); -- cgit v1.2.3