aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/scene.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/scene.cpp b/engines/kyra/scene.cpp
index ebf6bdc464..ff2ffda549 100644
--- a/engines/kyra/scene.cpp
+++ b/engines/kyra/scene.cpp
@@ -1455,6 +1455,10 @@ bool KyraEngine::lineIsPassable(int x, int y) {
if (y > 137) {
return false;
}
+
+ if (y < 0) {
+ y = 0;
+ }
int ypos = 8;
if (_scaleMode) {
@@ -1464,8 +1468,6 @@ bool KyraEngine::lineIsPassable(int x, int y) {
}
x -= (ypos >> 1);
- if (y < 0)
- y = 0;
int xpos = x;
int xtemp = xpos + ypos - 1;