Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 7, 2006, 4:06:56 PM (18 years ago)
Author:
bensch
Message:

health

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/power_ups/weapon_power_up.cc

    r7065 r7077  
    3434{
    3535  this->init();
    36   this->loadPickupSound("sound/powerups/whats this2.wav");
    3736  if( root != NULL)
    3837    this->loadParams(root);
     
    4847{
    4948  this->setClassID(CL_WEAPON_POWER_UP, "WeaponPowerUp");
     49  this->loadPickupSound("sound/powerups/whats this2.wav");
     50
    5051  this->weaponXML = NULL;
    5152  this->weapon = NULL;
     
    9596{
    9697  this->weapon = dynamic_cast<Weapon*>(Factory::fabricate(name));
     98  if (this->weapon == NULL)
     99  {
     100    PRINTF(1)("Unable to load Weapon. %s\n", name);
     101    this->weapon = dynamic_cast<Weapon*>(Factory::fabricate("Turret"));
     102  }
    97103  this->model = this->weapon->getModel(0);
    98104}
Note: See TracChangeset for help on using the changeset viewer.