STARK: Fix the logic for the is anim at time opcode

This commit is contained in:
Bastien Bouclet 2015-09-10 12:15:20 +02:00
parent 068ecbd192
commit 87b25fa26f

View File

@ -930,7 +930,7 @@ Command *Command::opIsItemActivity(const ResourceReference &itemRef, int32 value
Command *Command::opIsAnimAtTime(const ResourceReference &animRef, int32 time) {
Anim *anim = animRef.resolve<Anim>();
bool condition = anim->isInUse() && anim->isAtTime(time);
bool condition = !anim->isInUse() || anim->isAtTime(time);
return nextCommandIf(condition);
}