From fe07d6aa7766a963562d2344d267d013fd78c2c8 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Wed, 24 Jun 2009 18:32:08 -0400 Subject: Fix the attack particles to use sprite directions not being directions --- src/monster.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/monster.cpp') 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; -- cgit v1.2.3-60-g2f50