diff options
Diffstat (limited to 'engines/bladerunner/script/ai/mia.cpp')
-rw-r--r-- | engines/bladerunner/script/ai/mia.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/bladerunner/script/ai/mia.cpp b/engines/bladerunner/script/ai/mia.cpp index 2ca9780353..103b6c4dbb 100644 --- a/engines/bladerunner/script/ai/mia.cpp +++ b/engines/bladerunner/script/ai/mia.cpp @@ -147,9 +147,9 @@ bool AIScriptMia::UpdateAnimation(int *animation, int *frame) { _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(569)) { + *animation = 568; _animationFrame = 0; _animationState = 2; - *animation = 568; } break; @@ -158,9 +158,9 @@ bool AIScriptMia::UpdateAnimation(int *animation, int *frame) { _animationFrame++; if (_animationFrame >= Slice_Animation_Query_Number_Of_Frames(570)) { + *animation = 568; _animationFrame = 0; _animationState = 2; - *animation = 568; } break; @@ -175,7 +175,7 @@ bool AIScriptMia::UpdateAnimation(int *animation, int *frame) { bool AIScriptMia::ChangeAnimationMode(int mode) { switch (mode) { - case 0: + case kAnimationModeIdle: if (_animationState >= 2 && _animationState <= 4) { _flag1 = false; } else { @@ -183,7 +183,7 @@ bool AIScriptMia::ChangeAnimationMode(int mode) { _animationState = 0; } break; - case 3: + case kAnimationModeTalk: _animationFrame = 0; _flag1 = false; _animationState = 2; @@ -202,8 +202,6 @@ bool AIScriptMia::ChangeAnimationMode(int mode) { _animationFrame = 0; _animationState = 1; break; - default: - break; } return true; |