diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-28 18:36:58 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-28 18:36:58 +0000 |
commit | df2d513ba368f24cbec3ece3ff0084093a568e86 (patch) | |
tree | 2488c1733a083a873fd6aaaf3acbeb434ee52c1d /src/being.cpp | |
parent | 805f3a89953eada8eb6186715ac3169e5ed5e845 (diff) | |
download | mana-df2d513ba368f24cbec3ece3ff0084093a568e86.tar.gz mana-df2d513ba368f24cbec3ece3ff0084093a568e86.tar.bz2 mana-df2d513ba368f24cbec3ece3ff0084093a568e86.tar.xz mana-df2d513ba368f24cbec3ece3ff0084093a568e86.zip |
Added the possibility to assign particle effects to monsters in the monster database. Added flame particle effect to fire goblin as a proof of concept.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp index b068270b..ad60dc2f 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -83,7 +83,6 @@ Being::~Being() { std::for_each(mSprites.begin(), mSprites.end(), make_dtor(mSprites)); clearPath(); - setMap(NULL); for ( std::list<Particle *>::iterator i = mChildParticleEffects.begin(); i != mChildParticleEffects.end(); @@ -92,6 +91,8 @@ Being::~Being() (*i)->kill(); } + setMap(NULL); + instances--; if (instances == 0) |