aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-03-31 12:58:11 +0000
committerTravis Howell2005-03-31 12:58:11 +0000
commitfc59dcae3e81e0f2620ec5e225aa775904403540 (patch)
tree59e9b03bfcd55114075eb7451d34b57f0681b6df
parenta78e0d0b821ab0c39f58cf0eb7951b8537e1b791 (diff)
downloadscummvm-rg350-fc59dcae3e81e0f2620ec5e225aa775904403540.tar.gz
scummvm-rg350-fc59dcae3e81e0f2620ec5e225aa775904403540.tar.bz2
scummvm-rg350-fc59dcae3e81e0f2620ec5e225aa775904403540.zip
Return correct object x/y position
svn-id: r17308
-rw-r--r--scumm/script_v72he.cpp4
-rw-r--r--scumm/script_v90he.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 42ad8dab1f..0b2f390e0a 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -762,7 +762,7 @@ void ScummEngine_v72he::o72_getObjectImageX() {
return;
}
- push(_objs[objnum].x_pos);
+ push(_objs[objnum].x_pos / 8);
}
void ScummEngine_v72he::o72_getObjectImageY() {
@@ -774,7 +774,7 @@ void ScummEngine_v72he::o72_getObjectImageY() {
return;
}
- push(_objs[objnum].y_pos);
+ push(_objs[objnum].y_pos / 8);
}
void ScummEngine_v72he::o72_captureWizImage() {
diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp
index 742a5d96d3..aacc55d157 100644
--- a/scumm/script_v90he.cpp
+++ b/scumm/script_v90he.cpp
@@ -2005,13 +2005,13 @@ void ScummEngine_v90he::o90_getObjectData() {
if (_heObjectNum == -1)
push(0);
else
- push(_objs[_heObjectNum].x_pos);
+ push(_objs[_heObjectNum].x_pos / 8);
break;
case 7:
if (_heObjectNum == -1)
push(0);
else
- push(_objs[_heObjectNum].y_pos);
+ push(_objs[_heObjectNum].y_pos / 8);
break;
case 20:
push(getState(_heObject));