Ticket #8181: cmi-direction2.diff

File cmi-direction2.diff, 538 bytes (added by eriktorbjorn, 18 years ago)

Patch #2, against a March 1 CVS snapshot

  • scummvm/scumm/actor.cpp

    diff -ur ScummVM-cvs20030301/scummvm/scumm/actor.cpp ScummVM-cvs20030301+hack/scummvm/scumm/actor.cpp
    old new  
    112112
    113113int Scumm::getAngleFromPos(int x, int y)
    114114{
    115         if (_gameId == GID_DIG) {
     115        if (_gameId == GID_DIG || _gameId == GID_CMI) {
    116116                double temp = atan2((double)x, (double)-y);
    117117                return normalizeAngle((int)(temp * 180 / 3.1415926535));
    118118        } else {