init costumes for v1 games

svn-id: r8378
This commit is contained in:
Paweł Kołodziejski 2003-06-07 04:24:57 +00:00
parent 49b9a8fc9d
commit 0c85e713ac
2 changed files with 4 additions and 9 deletions

View File

@ -683,15 +683,6 @@ void Scumm_v2::o2_actorSet() {
switch (_opcode) {
case 1: // Actor Sound
a->sound[0] = arg;
#if 0
// FIXME: This hack would make costume draw. However, until
// we have added support for the V1 costume format, this hurts
// more than it helps.
if (_version == 1 && vm.slot[_currentScript].number == 1) {
a->setActorCostume(act);
}
#endif
break;
case 2: // Actor Set Color

View File

@ -819,6 +819,10 @@ void Scumm::scummInit() {
for (i = 1; i < _numActors; i++) {
_actors[i].number = i;
_actors[i].initActor(1);
// this is from IDB
if (_version == 1)
_actors[i].costume = i;
}
_numNestedScripts = 0;