aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-12-25 18:21:03 +0000
committerMax Horn2003-12-25 18:21:03 +0000
commitaeb3bd33c22af075438ef2c9ff5bab43172dff75 (patch)
treef3189d7b380b9b81d7a3278e2e43e0b44339028d /scumm
parent6a318fcdfee08730042154507bd5a89b02f52f16 (diff)
downloadscummvm-rg350-aeb3bd33c22af075438ef2c9ff5bab43172dff75.tar.gz
scummvm-rg350-aeb3bd33c22af075438ef2c9ff5bab43172dff75.tar.bz2
scummvm-rg350-aeb3bd33c22af075438ef2c9ff5bab43172dff75.zip
Fix for bug #809942 (COMI: Guybrush disappears before Hotel on Blood)
svn-id: r11922
Diffstat (limited to 'scumm')
-rw-r--r--scumm/boxes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp
index c68e44ccc6..dd2c808fa3 100644
--- a/scumm/boxes.cpp
+++ b/scumm/boxes.cpp
@@ -194,7 +194,7 @@ int ScummEngine::getScale(int box, int x, int y) {
if (s.y1 == s.y2) {
scale = scaleX;
} else {
- scale = (scaleX + scaleY - s.x1) / 2;
+ scale = (scaleX + scaleY) / 2;
}
}