Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 9, 2013, 9:26:46 PM (11 years ago)
Author:
landauf
Message:

BaseObject now requires a Context instead of a creator (BaseObject*) in its constructor.
Namespace, Level, and Scene inherit from Context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/modules/weapons/projectiles/BasicProjectile.cc

    r9567 r9629  
    106106                {
    107107                    {
    108                         ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getCreator());
     108                        ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext());
    109109                        effect->setPosition(entity->getPosition());
    110110                        effect->setOrientation(entity->getOrientation());
     
    115115                    // Second effect with same condition
    116116                    {
    117                         ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getCreator());
     117                        ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext());
    118118                        effect->setPosition(entity->getPosition());
    119119                        effect->setOrientation(entity->getOrientation());
     
    127127                if (victim && victim->hasShield() && (this->getDamage() > 0.0f || this->getShieldDamage() > 0.0f) && victim->getHealth() > 0.0f)
    128128                {
    129                     ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getCreator());
     129                    ParticleSpawner* effect = new ParticleSpawner(this->getShooter()->getContext());
    130130                    effect->setDestroyAfterLife(true);
    131131                    effect->setSource("Orxonox/Shield");
Note: See TracChangeset for help on using the changeset viewer.