mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-24 10:45:46 +00:00
patch #693475 attempt to address the actor facing problems in comi by erik
svn-id: r6643
This commit is contained in:
parent
af19cac738
commit
18acc2e800
@ -217,7 +217,10 @@ void Scumm::getObjectXYPos(int object, int &x, int &y, int &dir)
|
||||
x = od->walk_x;
|
||||
y = od->walk_y;
|
||||
}
|
||||
dir = oldDirToNewDir(od->actordir & 3);
|
||||
if (_features & GF_AFTER_V8)
|
||||
dir = od->actordir;
|
||||
else
|
||||
dir = oldDirToNewDir(od->actordir & 3);
|
||||
}
|
||||
|
||||
int Scumm::getObjActToObjActDist(int a, int b)
|
||||
@ -654,7 +657,7 @@ void Scumm::setupRoomObject(ObjectData *od, byte *room, byte *searchptr)
|
||||
od->y_pos = (int)READ_LE_UINT32(&imhd->v8.y_pos);
|
||||
od->width = (uint)READ_LE_UINT32(&imhd->v8.width);
|
||||
od->height = (uint)READ_LE_UINT32(&imhd->v8.height);
|
||||
od->actordir = (byte)READ_LE_UINT32(&imhd->v8.actordir);
|
||||
od->actordir = READ_LE_UINT32(&imhd->v8.actordir);
|
||||
|
||||
} else if (_features & GF_AFTER_V7) {
|
||||
od->obj_nr = READ_LE_UINT16(&(cdhd->v7.obj_id));
|
||||
|
Loading…
Reference in New Issue
Block a user