From 2abb8d9ff6058c6e7b8053ea52c8d474da6faced Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Wed, 3 Jun 2009 14:24:00 +0000 Subject: LOL: fixed minor bug in shakeScene() which caused a graphics glitch when dropping into pits svn-id: r41140 --- engines/kyra/scene_lol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/kyra/scene_lol.cpp b/engines/kyra/scene_lol.cpp index 9431220a56..df4be0fa1a 100644 --- a/engines/kyra/scene_lol.cpp +++ b/engines/kyra/scene_lol.cpp @@ -1267,21 +1267,21 @@ void LoLEngine::shakeScene(int duration, int width, int height, int restore) { int x1, y1, x2, y2, w, h; if (s1 >= 0) { x1 = 112; - x2 = 112; + x2 = 112 + s1; w = 176 - s1; } else { x1 = 112 - s1; - x2 = 112 + s1; + x2 = 112; w = 176 + s1; } if (s2 >= 0) { y1 = 0; - y2 = 0; + y2 = s2; h = 120 - s2; } else { y1 = -s2; - y2 = s2; + y2 = 0; h = 120 + s2; } -- cgit v1.2.3