aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Kagerer2009-06-03 14:24:00 +0000
committerFlorian Kagerer2009-06-03 14:24:00 +0000
commit2abb8d9ff6058c6e7b8053ea52c8d474da6faced (patch)
tree44b95a1f8bb65cd07ca70784611bb8672b015061
parent317da8756e1d350167739d82b128fc5fcd70687e (diff)
downloadscummvm-rg350-2abb8d9ff6058c6e7b8053ea52c8d474da6faced.tar.gz
scummvm-rg350-2abb8d9ff6058c6e7b8053ea52c8d474da6faced.tar.bz2
scummvm-rg350-2abb8d9ff6058c6e7b8053ea52c8d474da6faced.zip
LOL: fixed minor bug in shakeScene() which caused a graphics glitch when dropping into pits
svn-id: r41140
-rw-r--r--engines/kyra/scene_lol.cpp8
1 files 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;
}