Ticket #8147: ft-sounds.diff

File ft-sounds.diff, 1.2 KB (added by eriktorbjorn, 21 years ago)

Patch against a December 15 CVS snapshot

  • scummvm/scumm/akos.cpp

    diff -ur ScummVM-cvs20021215/scummvm/scumm/akos.cpp ScummVM-cvs20021215+hack/scummvm/scumm/akos.cpp
    old new  
    2323#include "scumm.h"
    2424#include "actor.h"
    2525#include "akos.h"
     26#include "sound.h"
    2627
    2728bool Scumm::akos_hasManyDirections(Actor *a)
    2829{
     
    14431444                        a->flip = GW(2) != 0;
    14441445                        continue;
    14451446                case AKC_CmdQue3:
    1446                         tmp = GB(2);
     1447                        tmp = GB(2) - 1;
    14471448                        if ((uint) tmp < 8)
    14481449                                akos_queCommand(3, a, a->sound[tmp], 0);
    14491450                        continue;
    14501451                case AKC_CmdQue3Quick:
    1451                         akos_queCommand(3, a, a->sound[1], 0);
     1452                        akos_queCommand(3, a, a->sound[0], 0);
    14521453                        continue;
    14531454                case AKC_StartAnim:
    14541455                        akos_queCommand(4, a, GB(2), 0);
     
    15401541
    15411542void Scumm::akos_queCommand(byte cmd, Actor *a, int param_1, int param_2)
    15421543{
    1543 //  warning("akos_queCommand(%d,%d,%d,%d)", cmd, a->number, param_1, param_2);
     1544        switch (cmd) {
     1545        case 3:
     1546                if (param_1)
     1547                        _sound->playSound(param_1);
     1548                break;
     1549        default:
     1550//              warning("akos_queCommand(%d,%d,%d,%d)", cmd, a->number, param_1, param_2);
     1551                break;
     1552        }
    15441553}
    15451554
    15461555