Skip to content

Commit

Permalink
TOON: Fix Flux jumpy animation when imprisoned
Browse files Browse the repository at this point in the history
Idle animation was reset every frame when changing facing point.
Fix also Drew description when right-clicking on Flux
  • Loading branch information
sylvaintv committed Oct 6, 2011
1 parent 1646048 commit dedbfb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions engines/toon/script_func.cpp
Expand Up @@ -655,13 +655,15 @@ int32 ScriptFunc::sys_Cmd_Set_Flux_Facing_Point(EMCState *state) {
int32 fx = stackPos(0);
int32 fy = stackPos(1);
_vm->getFlux()->setFacing(_vm->getFlux()->getFacingFromDirection(fx - _vm->getFlux()->getX(), fy - _vm->getFlux()->getY()));
_vm->getFlux()->playStandingAnim();
if (_vm->getFlux()->getFlag() == 0) // don't reset the animation unless Flux is in idle mode
_vm->getFlux()->playStandingAnim();
return 1;
}

int32 ScriptFunc::sys_Cmd_Set_Flux_Facing(EMCState *state) {
_vm->getFlux()->forceFacing(stackPos(0));
_vm->getFlux()->playStandingAnim();
if (_vm->getFlux()->getFlag() == 0) // don't reset the animation unless Flux is in idle mode
_vm->getFlux()->playStandingAnim();
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion engines/toon/toon.cpp
Expand Up @@ -1503,7 +1503,7 @@ void ToonEngine::clickEvent() {
if (leftButton)
createMouseItem(104);
else
characterTalk(518);
characterTalk(1104);
}
}
if (_currentHotspotItem == -4) {
Expand Down

0 comments on commit dedbfb8

Please sign in to comment.