aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/character.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/toon/character.cpp')
-rw-r--r--engines/toon/character.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/toon/character.cpp b/engines/toon/character.cpp
index 6f7258d43c..50913f89c7 100644
--- a/engines/toon/character.cpp
+++ b/engines/toon/character.cpp
@@ -25,6 +25,7 @@
#include "toon/character.h"
#include "toon/drew.h"
+#include "toon/flux.h"
#include "toon/path.h"
namespace Toon {
@@ -936,8 +937,15 @@ void Character::playAnim(int32 animId, int32 unused, int32 flags) {
char animName[20];
strcpy(animName, anim->_filename);
+
+ int32 facing = _facing;
+ if (_id == 1) {
+ // flux special case... some animations are not for every facing
+ facing = CharacterFlux::fixFacingForAnimation(facing, animId);
+ }
+
if (strchr(animName, '?'))
- *strchr(animName, '?') = '0' + _facing;
+ *strchr(animName, '?') = '0' + facing;
strcat(animName, ".CAF");