diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-14 21:04:46 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-14 21:04:46 +0000 |
commit | dc3c5d595e60a8498e44affb8ec05b91709d34fc (patch) | |
tree | 15dabb6da28bb2f30694f761cb301e2b8b312576 /src/npc.cpp | |
parent | fc8760599dfd730d416bb2c646e17c5dd7dd132e (diff) | |
download | mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.tar.gz mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.tar.bz2 mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.tar.xz mana-dc3c5d595e60a8498e44affb8ec05b91709d34fc.zip |
Early addition of a particle effect disabling option. Would like to
change this in the future to update instantaneously.
Diffstat (limited to 'src/npc.cpp')
-rw-r--r-- | src/npc.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index fe0b4598..3f9a1601 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -58,13 +58,16 @@ NPC::NPC(Uint32 id, Uint16 job, Map *map, Network *network): c++; } - //setup particle effects - for (std::list<std::string>::const_iterator i = info.particles.begin(); - i != info.particles.end(); - i++) + if (mParticleEffects) { - Particle *p = particleEngine->addEffect(*i, 0, 0); - this->controlParticle(p); + //setup particle effects + for (std::list<std::string>::const_iterator i = info.particles.begin(); + i != info.particles.end(); + i++) + { + Particle *p = particleEngine->addEffect(*i, 0, 0); + this->controlParticle(p); + } } mName = 0; } |