- Timestamp:
- Dec 13, 2008, 2:55:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2414 r2422 30 30 #include "Pawn.h" 31 31 32 #include "core/Core.h" 32 33 #include "core/CoreIncludes.h" 33 34 #include "core/XMLPort.h" … … 145 146 if (this->spawnparticlesource_ != "") 146 147 { 147 ParticleSpawner* effect = new ParticleSpawner(this );148 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 148 149 effect->setPosition(this->getPosition()); 149 150 effect->setOrientation(this->getOrientation()); … … 167 168 this->getPlayer()->stopControl(this); 168 169 169 this->deatheffect(); 170 if (Core::isMaster()) 171 this->deatheffect(); 170 172 } 171 173 … … 174 176 // play death effect 175 177 { 176 ParticleSpawner* effect = new ParticleSpawner(this );178 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 177 179 effect->setPosition(this->getPosition()); 178 180 effect->setOrientation(this->getOrientation()); … … 182 184 } 183 185 { 184 ParticleSpawner* effect = new ParticleSpawner(this );186 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 185 187 effect->setPosition(this->getPosition()); 186 188 effect->setOrientation(this->getOrientation()); … … 190 192 } 191 193 { 192 ParticleSpawner* effect = new ParticleSpawner(this );194 ParticleSpawner* effect = new ParticleSpawner(this->getCreator()); 193 195 effect->setPosition(this->getPosition()); 194 196 effect->setOrientation(this->getOrientation()); … … 199 201 for (unsigned int i = 0; i < this->numexplosionchunks_; ++i) 200 202 { 201 ExplosionChunk* chunk = new ExplosionChunk(this );203 ExplosionChunk* chunk = new ExplosionChunk(this->getCreator()); 202 204 chunk->setPosition(this->getPosition()); 203 205 … … 214 216 { 215 217 this->setHealth(this->initialHealth_); 216 this->spawneffect(); 218 if (Core::isMaster()) 219 this->spawneffect(); 217 220 } 218 221
Note: See TracChangeset
for help on using the changeset viewer.