diff options
author | Strangerke | 2012-05-20 15:09:32 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-03-28 17:36:57 +0200 |
commit | 03e0d5927f57956a29b5c858d203b3272311d4db (patch) | |
tree | 323bc7b899d26b9983264e28beaeddf9da3a3f40 /engines/lilliput/lilliput.cpp | |
parent | dc45e2b791a3c3c6390b78d7aa0625e16bdef1c7 (diff) | |
download | scummvm-rg350-03e0d5927f57956a29b5c858d203b3272311d4db.tar.gz scummvm-rg350-03e0d5927f57956a29b5c858d203b3272311d4db.tar.bz2 scummvm-rg350-03e0d5927f57956a29b5c858d203b3272311d4db.zip |
LILLIPUT: More renaming, fix two bugs
Diffstat (limited to 'engines/lilliput/lilliput.cpp')
-rw-r--r-- | engines/lilliput/lilliput.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/lilliput/lilliput.cpp b/engines/lilliput/lilliput.cpp index 21b18f9133..dcf572fe0c 100644 --- a/engines/lilliput/lilliput.cpp +++ b/engines/lilliput/lilliput.cpp @@ -1205,7 +1205,7 @@ void LilliputEngine::sortCharacters() { } void LilliputEngine::scrollToViewportCharacterTarget() { - debugC(2, kDebugEngineTBC, "scrollToViewportCharacterTarget()"); + debugC(2, kDebugEngine, "scrollToViewportCharacterTarget()"); if (_scriptHandler->_viewportCharacterTarget == -1) return; @@ -1215,7 +1215,7 @@ void LilliputEngine::scrollToViewportCharacterTarget() { Common::Point newPos = _scriptHandler->_viewportPos; if (var2 >= 1) { - if (var2 >= 6) { + if (var2 > 6) { newPos.x += 4; if (newPos.x > 56) newPos.x = 56; @@ -1226,16 +1226,17 @@ void LilliputEngine::scrollToViewportCharacterTarget() { newPos.x = 0; } - if (var4 >= 1) { + if ((var4 < 1) && (newPos.y < 4)) + newPos.y = 0; + else { + if (var4 < 1) + newPos.y -= 4; + if (var4 > 6) { newPos.y += 4; if (newPos.y >= 56) newPos.y = 56; } - } else { - newPos.y -= 4; - if (newPos.y < 0) - newPos.y = 0; } viewportScrollTo(newPos); @@ -1362,7 +1363,7 @@ void LilliputEngine::sub15498(Common::Point pos, int var2) { } void LilliputEngine::checkSpeechClosing() { - debugC(2, kDebugEngineTBC, "checkSpeechClosing()"); + debugC(2, kDebugEngine, "checkSpeechClosing()"); if (_scriptHandler->_speechTimer != 0) { --_scriptHandler->_speechTimer; |