Skip to content

Commit

Permalink
ACCESS: Fix 'bounce' when reaching left end of a horizontal scrolling…
Browse files Browse the repository at this point in the history
… scene
  • Loading branch information
dreammaster committed Dec 13, 2014
1 parent b01f5d6 commit 9fa0fc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engines/access/player.cpp
Expand Up @@ -814,8 +814,12 @@ bool Player::scrollRight() {
if (_vm->_screen->_scrollX < 0) {
do {
_vm->_screen->_scrollX += TILE_WIDTH;
if (--_vm->_screen->_scrollCol < 0)
if (--_vm->_screen->_scrollCol < 0) {
_scrollEnd = true;
_vm->_screen->_scrollX = 0;
_vm->_screen->_scrollCol = 0;
return true;
}

_vm->_buffer1.moveBufferRight();
_vm->_room->buildColumn(_vm->_screen->_scrollCol, 0);
Expand Down

0 comments on commit 9fa0fc8

Please sign in to comment.