Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7126 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Feb 13, 2006, 1:14:53 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: the delete Mechanism of PNode seems to work again.
This is done by always deleting the first node, and not walking through a list, that is eleminated during deletion time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.cc

    r7102 r7126  
    2929#include "state.h"
    3030#include "animation3d.h"
    31 #include "vector.h"
    3231
    3332#include "sound_source.h"
     
    8685  this->soundSource = new SoundSource(this);       //< Every Weapon has exacty one SoundSource.
    8786  this->emissionPoint.setParent(this);             //< One EmissionPoint, that is a PNode connected to the weapon. You can set this to the exitting point of the Projectiles
     87  this->emissionPoint.setName("EmissionPoint");
     88  this->emissionPoint.addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT);
    8889
    8990  this->defaultTarget = NULL;                      //< Nothing is Targeted by default.
Note: See TracChangeset for help on using the changeset viewer.