aboutsummaryrefslogtreecommitdiff
path: root/script_v2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'script_v2.cpp')
-rw-r--r--script_v2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/script_v2.cpp b/script_v2.cpp
index 09140c17d2..2621d2a00b 100644
--- a/script_v2.cpp
+++ b/script_v2.cpp
@@ -1319,9 +1319,9 @@ void Scumm::o6_roomOps() {
b = pop();
a = pop();
if (a < 160) a=160;
- if (a > _scrWidth) a=_scrWidth;
if (b < 160) b=160;
- if (b > _scrHeight) b=_scrHeight;
+ if (a > _scrWidth-160) a=_scrWidth-160;
+ if (b > _scrWidth-160) b=_scrWidth-160;
_vars[VAR_CAMERA_MIN_X] = a;
_vars[VAR_CAMERA_MAX_X] = b;
break;