summaryrefslogtreecommitdiff
path: root/src/particleemitter.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-13 09:34:46 +0000
committerIra Rice <irarice@gmail.com>2008-10-13 09:34:46 +0000
commita4d2f2c0373848fa8a886c1dddc6247b81527df3 (patch)
treeb4d0f0dcab4bd9ff06a4cd0613e26f61fffb45ce /src/particleemitter.cpp
parent1c337aae30b334d99a5ec81269f2c6d35b8004ea (diff)
downloadmana-a4d2f2c0373848fa8a886c1dddc6247b81527df3.tar.gz
mana-a4d2f2c0373848fa8a886c1dddc6247b81527df3.tar.bz2
mana-a4d2f2c0373848fa8a886c1dddc6247b81527df3.tar.xz
mana-a4d2f2c0373848fa8a886c1dddc6247b81527df3.zip
Added mob particle attack effects to mobs. Inspired by the TMW patch in
their trunk client.
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r--src/particleemitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp
index 816a5d28..08944cdd 100644
--- a/src/particleemitter.cpp
+++ b/src/particleemitter.cpp
@@ -38,7 +38,7 @@
#define SIN45 0.707106781f
#define DEG_RAD_FACTOR 0.017453293f
-ParticleEmitter::ParticleEmitter(xmlNodePtr emitterNode, Particle *target, Map *map):
+ParticleEmitter::ParticleEmitter(xmlNodePtr emitterNode, Particle *target, Map *map, int rotation):
mOutputPauseLeft(0),
mParticleImage(0)
{
@@ -102,7 +102,9 @@ ParticleEmitter::ParticleEmitter(xmlNodePtr emitterNode, Particle *target, Map *
else if (name == "horizontal-angle")
{
mParticleAngleHorizontal = readMinMax(propertyNode, 0.0f);
+ mParticleAngleHorizontal.minVal += rotation;
mParticleAngleHorizontal.minVal *= DEG_RAD_FACTOR;
+ mParticleAngleHorizontal.maxVal += rotation;
mParticleAngleHorizontal.maxVal *= DEG_RAD_FACTOR;
}
else if (name == "vertical-angle")