summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-06-24 18:32:08 -0400
committerChuck Miller <shadowmil@gmail.com>2009-06-24 18:32:08 -0400
commitfe07d6aa7766a963562d2344d267d013fd78c2c8 (patch)
treea0754309e50f633be0df7b251ddfcaeab5a44cb4 /src
parent4f3a8268f69650e431cb0496d9903e7a02b609f0 (diff)
downloadmana-client-fe07d6aa7766a963562d2344d267d013fd78c2c8.tar.gz
mana-client-fe07d6aa7766a963562d2344d267d013fd78c2c8.tar.bz2
mana-client-fe07d6aa7766a963562d2344d267d013fd78c2c8.tar.xz
mana-client-fe07d6aa7766a963562d2344d267d013fd78c2c8.zip
Fix the attack particles to use sprite directions not being directions
Diffstat (limited to 'src')
-rw-r--r--src/monster.cpp10
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;