Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 3:29:46 PM (17 years ago)
Author:
nicolasc
Message:

bump: black acid splash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/acid_splash.cc

    r10328 r10333  
    5555  this->grid->setParent( this);
    5656
    57 //  if (rand()/2 == 0) //!<Randomized Textrures
    58     this->grid->setTexture( "maps/acid3.png");
     57
     58  int rnd = rand()/3;
     59
     60  switch (rnd){
     61    case 0:
     62      this->grid->setTexture( "maps/acid2.png");
     63      break;
     64    case 1:
     65      this->grid->setTexture( "maps/acid3.png");
     66      break;
     67    case 2:
     68      this->grid->setTexture( "maps/blub.png");
     69      break;
     70    default:
     71      this->grid->setTexture( "maps/acid2.png");
     72  }
     73//   if (rand()/2 == 0) //!<Randomized Textrures
     74//     this->grid->setTexture( "maps/acid3.png");
    5975//   else
    6076//     this->grid->setTexture( "maps/blub.png");
    6177
    6278  this->grid->toList(OM_ENVIRON); //this->getOMListNumber());
    63   //this->toList(OM_ENVIRON);
     79  this->toList(OM_ENVIRON);
    6480}
    6581
     
    113129  this->deactivate();
    114130 
    115   return;
     131//   return;
    116132
    117133  //dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage());
Note: See TracChangeset for help on using the changeset viewer.