diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/monster.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/monster.cpp b/src/monster.cpp index 3192abf5..3bdf1a62 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -121,12 +121,12 @@ void Monster::setAction(Action action, int attackType) particleEffect = getInfo().getAttackParticleEffect(attackType); if (!particleEffect.empty() && mParticleEffects) { - switch (mDirection) + switch (mSpriteDirection) { - case DOWN: rotation = 0; break; - case LEFT: rotation = 90; break; - case UP: rotation = 180; break; - case RIGHT: rotation = 270; break; + case DIRECTION_DOWN: rotation = 0; break; + case DIRECTION_LEFT: rotation = 90; break; + case DIRECTION_UP: rotation = 180; break; + case DIRECTION_RIGHT: rotation = 270; break; default: break; } Particle *p; |