From ab5850af625d44dad0c8357a0b1ae6b15e1fba40 Mon Sep 17 00:00:00 2001 From: sylvaintv Date: Tue, 12 Jul 2011 22:55:14 +0200 Subject: TOON: Fix default walk to object with screen scrolling Bug #3363119: "Toon: Player desapear when you use a object in pepper plant" --- engines/toon/toon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/toon') diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 401ab3d70e..cff6c24469 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -1552,7 +1552,7 @@ void ToonEngine::clickEvent() { return; } } else { - if (!_drew->walkTo(_mouseX, _mouseY)) { + if (!_drew->walkTo(_mouseX + _gameState->_currentScrollValue, _mouseY)) { // walk was canceled ? return; } -- cgit v1.2.3