diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-23 02:16:53 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-23 02:16:53 +0000 |
commit | d83e795dc3c8a07238939ee0b581cbfd1807cf1b (patch) | |
tree | 5ce6c06c867c61fffe934a67b2636c6c7a9e8b79 /src/particleemitter.h | |
parent | 8d3e43a7510dd7367c3bb62aae6841836f727493 (diff) | |
download | mana-client-d83e795dc3c8a07238939ee0b581cbfd1807cf1b.tar.gz mana-client-d83e795dc3c8a07238939ee0b581cbfd1807cf1b.tar.bz2 mana-client-d83e795dc3c8a07238939ee0b581cbfd1807cf1b.tar.xz mana-client-d83e795dc3c8a07238939ee0b581cbfd1807cf1b.zip |
Particle images are now reference-counted properly. Avoided attempts to load "data/graphics/" when a monster or equipment piece has no sprite. Error placeholder is now used when attempting to load a sprite definition file that doesn't exist.
Diffstat (limited to 'src/particleemitter.h')
-rw-r--r-- | src/particleemitter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/particleemitter.h b/src/particleemitter.h index 37d067a6..c9524488 100644 --- a/src/particleemitter.h +++ b/src/particleemitter.h @@ -48,6 +48,16 @@ class ParticleEmitter ParticleEmitter(xmlNodePtr emitterNode, Particle *target, Map *map); /** + * Copy Constructor (necessary for reference counting of particle images) + */ + ParticleEmitter(const ParticleEmitter &o); + + /** + * Assignment operator that calls the copy constructor + */ + ParticleEmitter & operator=(const ParticleEmitter &o); + + /** * Destructor. */ ~ParticleEmitter(); |