aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-08 21:14:21 +0000
committerMax Horn2003-05-08 21:14:21 +0000
commit4d7f7a8c80fdf78cf29f8517546a5a2a89694bab (patch)
treee307c440fc021bdf05bec1615d8808f05af49383 /scumm/gfx.cpp
parentaf14dabc75d23ea1bec9bffecbd5de2756ad561a (diff)
downloadscummvm-rg350-4d7f7a8c80fdf78cf29f8517546a5a2a89694bab.tar.gz
scummvm-rg350-4d7f7a8c80fdf78cf29f8517546a5a2a89694bab.tar.bz2
scummvm-rg350-4d7f7a8c80fdf78cf29f8517546a5a2a89694bab.zip
yet more v2 var fixes
svn-id: r7397
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 9b633b2a91..1ae0682a83 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1982,7 +1982,7 @@ void Scumm::setCameraAt(int pos_x, int pos_y) {
if (camera._cur.x > VAR(VAR_CAMERA_MAX_X))
camera._cur.x = VAR(VAR_CAMERA_MAX_X);
- if (VAR(VAR_SCROLL_SCRIPT)) {
+ if (VAR_SCROLL_SCRIPT != 0xFF && VAR(VAR_SCROLL_SCRIPT)) {
VAR(VAR_CAMERA_POS_X) = camera._cur.x;
runScript(VAR(VAR_SCROLL_SCRIPT), 0, 0, 0);
}