diff options
author | Paul Gilbert | 2014-11-08 16:34:06 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:25:01 -0500 |
commit | fddff687da7b7f9eb2156a84407794c44978caa8 (patch) | |
tree | 43b7bd0ed077091bf11653121ee3080e8516a679 /engines/access/amazon/amazon_room.cpp | |
parent | 6434ace3b695cc88593547f8079f6abd309b7f72 (diff) | |
download | scummvm-rg350-fddff687da7b7f9eb2156a84407794c44978caa8.tar.gz scummvm-rg350-fddff687da7b7f9eb2156a84407794c44978caa8.tar.bz2 scummvm-rg350-fddff687da7b7f9eb2156a84407794c44978caa8.zip |
ACCESS: Workaround for original game vertical room scrolling
Diffstat (limited to 'engines/access/amazon/amazon_room.cpp')
-rw-r--r-- | engines/access/amazon/amazon_room.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/access/amazon/amazon_room.cpp b/engines/access/amazon/amazon_room.cpp index 098220ee0c..96d34e70bb 100644 --- a/engines/access/amazon/amazon_room.cpp +++ b/engines/access/amazon/amazon_room.cpp @@ -125,6 +125,17 @@ void AmazonRoom::reloadRoom1() { _vm->_newRects.clear(); } +void AmazonRoom::setupRoom() { + Room::setupRoom(); + + // WORKAROUND: The original engine doesn't handle vertical scrolling rooms + Screen &screen = *_vm->_screen; + if (screen._vWindowHeight == (_playFieldHeight - 1)) { + screen._scrollRow = 1; + screen._scrollY = 0; + } +} + void AmazonRoom::roomSet() { _vm->_numAnimTimers = 0; _vm->_scripts->_sequence = 1000; |