From e3a28ad4b7d1b73d83a660f1a0535f957f42dbfd Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 14 Jan 2004 03:07:29 +0000 Subject: ... and so we are back at precisely my original code, wasn't it fun? :-) svn-id: r12367 --- scumm/actor.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scumm/actor.cpp b/scumm/actor.cpp index 9b6c9dd5bc..659d071e17 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -1217,18 +1217,14 @@ void Actor::setActorCostume(int c) { costumeNeedsInit = true; if (_vm->_features & GF_NEW_COSTUMES) { + cost.reset(); memset(animVariable, 0, sizeof(animVariable)); + costume = c; if (visible) { - cost.reset(); - costume = c; if (costume) { _vm->ensureResourceLoaded(rtCostume, costume); } - startAnimActor(initFrame); - } else { - costume = c; - cost.reset(); } } else { if (visible) { -- cgit v1.2.3