mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
... and so we are back at precisely my original code, wasn't it fun? :-)
svn-id: r12367
This commit is contained in:
parent
05b9f4ddf6
commit
e3a28ad4b7
@ -1217,18 +1217,14 @@ void Actor::setActorCostume(int c) {
|
|||||||
costumeNeedsInit = true;
|
costumeNeedsInit = true;
|
||||||
|
|
||||||
if (_vm->_features & GF_NEW_COSTUMES) {
|
if (_vm->_features & GF_NEW_COSTUMES) {
|
||||||
|
cost.reset();
|
||||||
memset(animVariable, 0, sizeof(animVariable));
|
memset(animVariable, 0, sizeof(animVariable));
|
||||||
|
costume = c;
|
||||||
|
|
||||||
if (visible) {
|
if (visible) {
|
||||||
cost.reset();
|
|
||||||
costume = c;
|
|
||||||
if (costume) {
|
if (costume) {
|
||||||
_vm->ensureResourceLoaded(rtCostume, costume);
|
_vm->ensureResourceLoaded(rtCostume, costume);
|
||||||
}
|
}
|
||||||
startAnimActor(initFrame);
|
|
||||||
} else {
|
|
||||||
costume = c;
|
|
||||||
cost.reset();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user