aboutsummaryrefslogtreecommitdiff
path: root/scumm/actor.cpp
diff options
context:
space:
mode:
authorMax Horn2002-09-13 12:28:53 +0000
committerMax Horn2002-09-13 12:28:53 +0000
commit14b16daf30ebf724c580cf524e551fb505b8edfa (patch)
tree157112cfa05bfdeb11ab637ad97f6d7769a6cd82 /scumm/actor.cpp
parent040b6c656ac11a6c0b8202d7e9ecb4d714c418e0 (diff)
downloadscummvm-rg350-14b16daf30ebf724c580cf524e551fb505b8edfa.tar.gz
scummvm-rg350-14b16daf30ebf724c580cf524e551fb505b8edfa.tar.bz2
scummvm-rg350-14b16daf30ebf724c580cf524e551fb505b8edfa.zip
this was broken recently
svn-id: r4929
Diffstat (limited to 'scumm/actor.cpp')
-rw-r--r--scumm/actor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/actor.cpp b/scumm/actor.cpp
index 5353890c37..9790993403 100644
--- a/scumm/actor.cpp
+++ b/scumm/actor.cpp
@@ -366,8 +366,8 @@ void Actor::setupActorScale()
if (resptr == NULL)
error("Scale table %d not defined", scale);
int theY = y;
- if (theY >= (_vm->_realWidth / 2))
- theY = (_vm->_realWidth / 2) - 1;
+ if (theY >= _vm->_realHeight)
+ theY = _vm->_realHeight - 1;
else if (theY < 0)
theY = 0;
scale = resptr[theY];