mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 10:19:27 +00:00
Return correct object x/y position
svn-id: r17308
This commit is contained in:
parent
a78e0d0b82
commit
fc59dcae3e
@ -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() {
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user