Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 22, 2005, 2:11:21 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: adapted the Factory algorithm to ObjectManager… still a logn way to go…

File:
1 edited

Legend:

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

    r4927 r4930  
    8888
    8989  this->energyLoaded = .0;
    90   this->energyLoadedMax = 10.0;
     90  this->energyLoadedMax = 5.0;
    9191  this->energy = .0;
    92   this->energyMax = 100.0;
     92  this->energyMax = 10.0;
    9393}
    9494
     
    112112  if (action >= WA_ACTION_COUNT)
    113113    return;
     114  if (this->soundBuffers[action] != NULL)
     115    ResourceManager::getInstance()->unload(this->soundBuffers[action]);
     116
    114117  else if (soundFile != NULL)
    115118  {
     
    330333  {
    331334    this->requestAction(WA_RELOAD);
     335    this->execute();
    332336  }
    333337}
     
    344348  {
    345349    this->requestAction(WA_DEACTIVATE);
     350    this->execute();
    346351    return false;
    347352  }
Note: See TracChangeset for help on using the changeset viewer.