Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2007, 11:48:16 PM (17 years ago)
Author:
nicolasc
Message:

minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/weapons/rf_cannon.cc

    r10644 r10645  
    5252RFCannon::~RFCannon()
    5353{
    54 //   for (int i = 0; i < this->getBarrels(); i++)
    55 //     delete [] this->objComp[i];
     54  for (int i = 0; i < this->getBarrels(); i++)
     55    delete [] this->objComp[i];
    5656
    57 //   delete [] this->emissionPoint;
    58 //   delete [] this->objComp;
     57  delete [] this->emissionPoint;
     58  delete [] this->objComp;
    5959}
    6060
     
    6767{
    6868
    69   this->loadModel("models/guns/rf_cannon.obj", 0.3);
     69  this->loadModel("models/guns/rf_cannon.obj", 0.2);
    7070
    7171
     
    8282
    8383  this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL | WTYPE_LIGHT);
    84   this->setProjectileTypeC("LBolt");
     84  this->setProjectileTypeC("PlasmaPulse");
    8585  this->prepareProjectiles(100);
    8686
     
    122122void RFCannon::fire()
    123123{
    124   for (int i = 0; i < this->getBarrels(); i++){
     124//   for (int i = 0; i < this->getBarrels(); i++){
    125125    Projectile* pj =  this->getProjectile();
    126126    if (pj == NULL)
     
    139139
    140140    this->activeBarrel = (this->activeBarrel + 1) % this->getBarrels();
    141   }
     141//   }
    142142}
    143143
Note: See TracChangeset for help on using the changeset viewer.