Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2007, 4:14:41 PM (18 years ago)
Author:
marcscha
Message:

Fixes and cleanups

Location:
branches/playability/src/world_entities/weapons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/heavy_blaster.cc

    r10260 r10261  
    3737  for (int i = 0; i < this->getBarrels(); i++)
    3838  {
     39   delete [] this->shootAnim[i];
     40   delete [] this->objComp[i];
     41  }
     42  delete [] this->emissionPoint;
     43 
     44   delete [] this->shootAnim;
     45   delete [] this->objComp;
     46/*
    3947    for(int j = 0; j < this->getSegs(); j++)
    4048    {
     
    4553    delete this->objComp[i];
    4654    delete this->emissionPoint[i];
    47   }
    48 
    49 //   this->deconstr();
     55  }*/
     56
     57//  this->deconstr();
    5058     // model will be deleted from WorldEntity-destructor
    5159}
  • branches/playability/src/world_entities/weapons/light_blaster.cc

    r10170 r10261  
    3434LightBlaster::~LightBlaster()
    3535{
     36
    3637  for (int i = 0; i < this->getBarrels(); i++)
    3738  {
     39   delete [] this->shootAnim[i];
     40   delete [] this->objComp[i];
     41  }
     42  delete [] this->emissionPoint;
     43   delete [] this->shootAnim;
     44   delete [] this->objComp;
     45/*
    3846    for(int j = 0; j < this->getSegs(); j++)
    3947    {
     
    4452    delete this->objComp[i];
    4553    delete this->emissionPoint[i];
    46   }
     54  }*/
    4755
    48   this->deconstr();
     56//  this->deconstr();
    4957      // model will be deleted from WorldEntity-destructor
    5058}
Note: See TracChangeset for help on using the changeset viewer.