diff -ur ScummVM-cvs20021215/scummvm/scumm/akos.cpp ScummVM-cvs20021215+hack/scummvm/scumm/akos.cpp
old
|
new
|
|
23 | 23 | #include "scumm.h" |
24 | 24 | #include "actor.h" |
25 | 25 | #include "akos.h" |
| 26 | #include "sound.h" |
26 | 27 | |
27 | 28 | bool Scumm::akos_hasManyDirections(Actor *a) |
28 | 29 | { |
… |
… |
|
1443 | 1444 | a->flip = GW(2) != 0; |
1444 | 1445 | continue; |
1445 | 1446 | case AKC_CmdQue3: |
1446 | | tmp = GB(2); |
| 1447 | tmp = GB(2) - 1; |
1447 | 1448 | if ((uint) tmp < 8) |
1448 | 1449 | akos_queCommand(3, a, a->sound[tmp], 0); |
1449 | 1450 | continue; |
1450 | 1451 | case AKC_CmdQue3Quick: |
1451 | | akos_queCommand(3, a, a->sound[1], 0); |
| 1452 | akos_queCommand(3, a, a->sound[0], 0); |
1452 | 1453 | continue; |
1453 | 1454 | case AKC_StartAnim: |
1454 | 1455 | akos_queCommand(4, a, GB(2), 0); |
… |
… |
|
1540 | 1541 | |
1541 | 1542 | void Scumm::akos_queCommand(byte cmd, Actor *a, int param_1, int param_2) |
1542 | 1543 | { |
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 | } |
1544 | 1553 | } |
1545 | 1554 | |
1546 | 1555 | |