aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];