From 95aa9a13a6ca634af664a3ac4753faf8b8271fd9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 18 Dec 2014 21:45:55 -0500 Subject: ACCESS: Refactor most of ASurface statics to instance variables --- engines/access/amazon/amazon_room.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/access/amazon/amazon_room.cpp') diff --git a/engines/access/amazon/amazon_room.cpp b/engines/access/amazon/amazon_room.cpp index 8174969a3d..29742f66bd 100644 --- a/engines/access/amazon/amazon_room.cpp +++ b/engines/access/amazon/amazon_room.cpp @@ -134,8 +134,8 @@ void AmazonRoom::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; + _vm->_scrollRow = 1; + _vm->_scrollY = 0; } } @@ -187,7 +187,7 @@ void AmazonRoom::mainAreaClick() { // WORKAROUND: In Amazon room 9, you can't leave the screen to the south due // to not being able to click a Y position that's high enough - if (screen._scrollRow == 0 && pt.y > 178) + if (_vm->_scrollRow == 0 && pt.y > 178) pt.y = 200; player._moveTo = pt; -- cgit v1.2.3