Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3888 in orxonox.OLD for orxonox/trunk/src/world_entities/weapon.cc


Ignore:
Timestamp:
Apr 19, 2005, 1:16:16 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: deconstructor cleanup in weapon/gun

File:
1 edited

Legend:

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

    r3881 r3888  
    5252  /*
    5353     i dont have to delete the weapons itself, because they are
    54      worldentities and therefore in the entities list of the world
     54     worldentities and therefore in the entities list of the world.
     55     world will clean them up for me
    5556  */
    5657  for(int i = 0; i < W_MAX_CONFIGS; ++i)
     
    207208  WorldInterface* wi = WorldInterface::getInstance();
    208209  this->worldEntities = wi->getEntityList();
     210
     211  this->objectComponent1 = NULL;
     212  this->objectComponent2 = NULL;
     213  this->objectComponent3 = NULL;
     214
     215  this->animation1 = NULL;
     216  this->animation2 = NULL;
     217  this->animation3 = NULL;
    209218}
    210219
     
    216225{
    217226  // model will be deleted from WorldEntity-destructor
     227  //this->worldEntities = NULL;
     228 
     229  /* dont delete objectComponentsX here, they will be killed when the pnodes are cleaned out */
     230
     231  /* all animations are deleted via the animation player*/
    218232}
    219233
Note: See TracChangeset for help on using the changeset viewer.