Ticket #8181: cmi-direction.diff

File cmi-direction.diff, 919 bytes (added by eriktorbjorn, 22 years ago)

Patch #1, against a March 1 CVS snapshot

  • scummvm/scumm/object.cpp

    diff -ur ScummVM-cvs20030301/scummvm/scumm/object.cpp ScummVM-cvs20030301+hack/scummvm/scumm/object.cpp
    old new  
    218218                y = od->walk_y;
    219219        }
    220220        if (_features & GF_AFTER_V8)
    221                 dir = od->actordir;
     221                dir = fromSimpleDir(1, od->actordir);
    222222        else
    223223                dir = oldDirToNewDir(od->actordir & 3);
    224224}
     
    657657                od->y_pos = (int)READ_LE_UINT32(&imhd->v8.y_pos);
    658658                od->width = (uint)READ_LE_UINT32(&imhd->v8.width);
    659659                od->height = (uint)READ_LE_UINT32(&imhd->v8.height);
    660                 od->actordir = READ_LE_UINT32(&imhd->v8.actordir);
     660                // HACK: This is to fit an angle into a byte
     661                od->actordir = toSimpleDir(1, READ_LE_UINT32(&imhd->v8.actordir));
    661662
    662663        } else if (_features & GF_AFTER_V7) {
    663664                od->obj_nr = READ_LE_UINT16(&(cdhd->v7.obj_id));