Ticket #8180: cmi-direction.diff

File cmi-direction.diff, 932 bytes (added by eriktorbjorn, 17 years ago)

Patch against a February 24 CVS snapshot

  • scummvm/scumm/object.cpp

    diff -ur ScummVM-cvs20030224/scummvm/scumm/object.cpp ScummVM-cvs20030224+hack/scummvm/scumm/object.cpp
    old new  
    217217                x = od->walk_x;
    218218                y = od->walk_y;
    219219        }
    220         dir = oldDirToNewDir(od->actordir & 3);
     220        if (_features & GF_AFTER_V8)
     221                dir = od->actordir;
     222        else
     223                dir = oldDirToNewDir(od->actordir & 3);
    221224}
    222225
    223226int Scumm::getObjActToObjActDist(int a, int b)
     
    654657                od->y_pos = (int)READ_LE_UINT32(&imhd->v8.y_pos);
    655658                od->width = (uint)READ_LE_UINT32(&imhd->v8.width);
    656659                od->height = (uint)READ_LE_UINT32(&imhd->v8.height);
    657                 od->actordir = (byte)READ_LE_UINT32(&imhd->v8.actordir);
     660                od->actordir = READ_LE_UINT32(&imhd->v8.actordir);
    658661
    659662        } else if (_features & GF_AFTER_V7) {
    660663                od->obj_nr = READ_LE_UINT16(&(cdhd->v7.obj_id));