- Timestamp:
- Aug 25, 2013, 9:08:42 PM (12 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/modules/weapons/projectiles/BasicProjectile.cc
r8855 r9667 42 42 namespace orxonox 43 43 { 44 RegisterClassNoArgs(BasicProjectile); 45 44 46 /** 45 47 @brief 46 48 Constructor. Registers the object and initializes some default values. 47 49 */ 48 BasicProjectile::BasicProjectile() : OrxonoxClass()50 BasicProjectile::BasicProjectile() 49 51 { 50 Register RootObject(BasicProjectile);// Register the BasicProjectile class to the core52 RegisterObject(BasicProjectile);// Register the BasicProjectile class to the core 51 53 52 54 this->bDestroy_ = false; … … 106 108 { 107 109 { 108 ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getC reator());110 ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext()); 109 111 effect->setPosition(entity->getPosition()); 110 112 effect->setOrientation(entity->getOrientation()); … … 115 117 // Second effect with same condition 116 118 { 117 ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getC reator());119 ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext()); 118 120 effect->setPosition(entity->getPosition()); 119 121 effect->setOrientation(entity->getOrientation()); … … 127 129 if (victim && victim->hasShield() && (this->getDamage() > 0.0f || this->getShieldDamage() > 0.0f) && victim->getHealth() > 0.0f) 128 130 { 129 ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getC reator());131 ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext()); 130 132 effect->setDestroyAfterLife(true); 131 133 effect->setSource("Orxonox/Shield");
Note: See TracChangeset
for help on using the changeset viewer.