... and so we are back at precisely my original code, wasn't it fun? :-)

svn-id: r12367
This commit is contained in:
Max Horn 2004-01-14 03:07:29 +00:00
parent 05b9f4ddf6
commit e3a28ad4b7

View File

@ -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) {