diff options
author | Paul Gilbert | 2017-08-06 17:45:27 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-06 17:45:27 -0400 |
commit | c55e83e7761e93aac124121de0e6e45b20269e02 (patch) | |
tree | d3f3601f22dbe0f21d927c7b77e808bbd6171930 /engines/titanic/game/computer_screen.cpp | |
parent | b445d31e58809670e2f02ee9eee2f33409366c5a (diff) | |
download | scummvm-rg350-c55e83e7761e93aac124121de0e6e45b20269e02.tar.gz scummvm-rg350-c55e83e7761e93aac124121de0e6e45b20269e02.tar.bz2 scummvm-rg350-c55e83e7761e93aac124121de0e6e45b20269e02.zip |
TITANIC: Remove development link left in computer screen view
Diffstat (limited to 'engines/titanic/game/computer_screen.cpp')
-rw-r--r-- | engines/titanic/game/computer_screen.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/titanic/game/computer_screen.cpp b/engines/titanic/game/computer_screen.cpp index be9c87a540..179063d1b0 100644 --- a/engines/titanic/game/computer_screen.cpp +++ b/engines/titanic/game/computer_screen.cpp @@ -31,6 +31,7 @@ BEGIN_MESSAGE_MAP(CComputerScreen, CGameObject) ON_MESSAGE(MovieEndMsg) ON_MESSAGE(EnterViewMsg) ON_MESSAGE(TimerMsg) + ON_MESSAGE(MovementMsg) END_MESSAGE_MAP() CComputerScreen::CComputerScreen() : CGameObject() { @@ -68,9 +69,22 @@ bool CComputerScreen::MovieEndMsg(CMovieEndMsg *msg) { bool CComputerScreen::EnterViewMsg(CEnterViewMsg *msg) { loadFrame(26); + + // WORKAROUND: The original game leaves in a debug link that + // allows skipping of Doorbot arrival sequence. Disable it + static_cast<CLinkItem *>(getParent()->findByName("_TRACK,3,e-cu,4,E"))->_bounds.clear(); + return true; } +bool CComputerScreen::MovementMsg(CMovementMsg *msg) { + if (msg->_movement != MOVE_BACKWARDS) + return true; + + msg->_posToUse = Common::Point(320, 50); + return false; +} + bool CComputerScreen::TimerMsg(CTimerMsg *msg) { int handle; |