diff options
author | Travis Howell | 2006-04-18 00:15:25 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-18 00:15:25 +0000 |
commit | b4c8b498debb05967547ce82ffc3680cca3fda57 (patch) | |
tree | e916018fb07875a5233fa18c240864702bfe0939 /engines/simon/vga.cpp | |
parent | 614fc253a9b3264c8f4d71b9c9227fb32c2f2ac9 (diff) | |
download | scummvm-rg350-b4c8b498debb05967547ce82ffc3680cca3fda57.tar.gz scummvm-rg350-b4c8b498debb05967547ce82ffc3680cca3fda57.tar.bz2 scummvm-rg350-b4c8b498debb05967547ce82ffc3680cca3fda57.zip |
Scrolling comparisons should always be signed, fixes scrolling issue in maze of FF
svn-id: r21995
Diffstat (limited to 'engines/simon/vga.cpp')
-rw-r--r-- | engines/simon/vga.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/simon/vga.cpp b/engines/simon/vga.cpp index 7253f84b48..621181ae87 100644 --- a/engines/simon/vga.cpp +++ b/engines/simon/vga.cpp @@ -2482,7 +2482,7 @@ void SimonEngine::vc84_stopSoundLoop() { } // Scrolling functions for Feeble Files -void SimonEngine::checkScrollX(int x, int xpos) { +void SimonEngine::checkScrollX(int16 x, int16 xpos) { if (_scrollXMax == 0 || getBitFlag(80) || getBitFlag(82) || x == 0) return; @@ -2513,7 +2513,7 @@ void SimonEngine::checkScrollX(int x, int xpos) { return; } - if ((uint16)(xpos - _scrollX) < 161) { + if (xpos - _scrollX < 161) { _scrollCount = -320; if (_scrollX < 320) _scrollCount = -_scrollX; @@ -2521,7 +2521,7 @@ void SimonEngine::checkScrollX(int x, int xpos) { } } -void SimonEngine::checkScrollY(int y, int ypos) { +void SimonEngine::checkScrollY(int16 y, int16 ypos) { if (_scrollYMax == 0 || getBitFlag(80)) return; @@ -2550,7 +2550,7 @@ void SimonEngine::checkScrollY(int y, int ypos) { return; } - if ((uint16)(ypos - _scrollY) < 100) { + if (ypos - _scrollY < 100) { _scrollCount = -240; if (_scrollY < 240) _scrollCount = -_scrollY; |