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; return;
} }
push(_objs[objnum].x_pos); push(_objs[objnum].x_pos / 8);
} }
void ScummEngine_v72he::o72_getObjectImageY() { void ScummEngine_v72he::o72_getObjectImageY() {
@ -774,7 +774,7 @@ void ScummEngine_v72he::o72_getObjectImageY() {
return; return;
} }
push(_objs[objnum].y_pos); push(_objs[objnum].y_pos / 8);
} }
void ScummEngine_v72he::o72_captureWizImage() { void ScummEngine_v72he::o72_captureWizImage() {

View File

@ -2005,13 +2005,13 @@ void ScummEngine_v90he::o90_getObjectData() {
if (_heObjectNum == -1) if (_heObjectNum == -1)
push(0); push(0);
else else
push(_objs[_heObjectNum].x_pos); push(_objs[_heObjectNum].x_pos / 8);
break; break;
case 7: case 7:
if (_heObjectNum == -1) if (_heObjectNum == -1)
push(0); push(0);
else else
push(_objs[_heObjectNum].y_pos); push(_objs[_heObjectNum].y_pos / 8);
break; break;
case 20: case 20:
push(getState(_heObject)); push(getState(_heObject));