Return correct object x/y position

svn-id: r17308
This commit is contained in:
Travis Howell 2005-03-31 12:58:11 +00:00
parent a78e0d0b82
commit fc59dcae3e
2 changed files with 4 additions and 4 deletions

View File

@ -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() {

View File

@ -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));