summaryrefslogtreecommitdiff
path: root/src/particle/animationparticle.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-16 20:59:21 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-16 20:59:21 +0300
commit558ef7174653df9d435e818bf16130443b0dd5be (patch)
treed829bf585fdb416d3a70659241e0565c49b817db /src/particle/animationparticle.cpp
parent7752e90c8208a5ebb192f44d85174c2937fbcef8 (diff)
downloadmanaverse-558ef7174653df9d435e818bf16130443b0dd5be.tar.gz
manaverse-558ef7174653df9d435e818bf16130443b0dd5be.tar.bz2
manaverse-558ef7174653df9d435e818bf16130443b0dd5be.tar.xz
manaverse-558ef7174653df9d435e818bf16130443b0dd5be.zip
Add particle type into particles.
Diffstat (limited to 'src/particle/animationparticle.cpp')
-rw-r--r--src/particle/animationparticle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/particle/animationparticle.cpp b/src/particle/animationparticle.cpp
index 55ce3824b..43623aee9 100644
--- a/src/particle/animationparticle.cpp
+++ b/src/particle/animationparticle.cpp
@@ -32,6 +32,7 @@ AnimationParticle::AnimationParticle(Animation *restrict const animation) :
ImageParticle(nullptr),
mAnimation(new SimpleAnimation(animation))
{
+ mType = ParticleType::Animation;
}
AnimationParticle::AnimationParticle(XmlNodePtrConst animationNode,
@@ -39,6 +40,7 @@ AnimationParticle::AnimationParticle(XmlNodePtrConst animationNode,
ImageParticle(nullptr),
mAnimation(new SimpleAnimation(animationNode, dyePalettes))
{
+ mType = ParticleType::Animation;
}
AnimationParticle::~AnimationParticle()