aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index c5199366f6..6108d448f4 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -2210,8 +2210,8 @@ void Scumm::moveCamera() {
}
cameraMoved();
-
- if (pos != camera._cur.x && VAR(VAR_SCROLL_SCRIPT)) {
+
+ if (VAR_SCROLL_SCRIPT != 0xFF && VAR(VAR_SCROLL_SCRIPT) && pos != camera._cur.x) {
VAR(VAR_CAMERA_POS_X) = camera._cur.x;
runScript(VAR(VAR_SCROLL_SCRIPT), 0, 0, 0);
}
@@ -2220,11 +2220,8 @@ void Scumm::moveCamera() {
void Scumm::cameraMoved() {
if (_features & GF_AFTER_V7) {
-
assert(camera._cur.x >= (_realWidth / 2) && camera._cur.y >= (_realHeight / 2));
-
} else {
-
if (camera._cur.x < (_realWidth / 2)) {
camera._cur.x = (_realWidth / 2);
} else if (camera._cur.x > _scrWidth - (_realWidth / 2)) {