Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 5, 2008, 9:55:00 PM (16 years ago)
Author:
rgrieder
Message:

forgot getSingleton in Orxonox.cc
There are now only three classes uses getSingleton: ConfigFileManager, Server and Client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/tools/ParticleInterface.cc

    r1653 r1654  
    5656    this->detaillevel_ = (unsigned int)detaillevel;
    5757    this->particleSystem_ = GraphicsEngine::getInstance().getLevelSceneManager()->createParticleSystem("particles" + getConvertedValue<unsigned int, std::string>(ParticleInterface::counter_s++), templateName);
    58     this->particleSystem_->setSpeedFactor(Orxonox::getSingleton().getTimeFactor());
     58    this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor());
    5959
    6060    if (GraphicsEngine::getInstance().getDetailLevelParticle() < (unsigned int)this->detaillevel_)
     
    171171  void ParticleInterface::setSpeedFactor(float factor)
    172172  {
    173     this->particleSystem_->setSpeedFactor(Orxonox::getSingleton().getTimeFactor() * factor);
     173    this->particleSystem_->setSpeedFactor(Orxonox::getInstance().getTimeFactor() * factor);
    174174  }
    175175  float ParticleInterface::getSpeedFactor() const
    176176  {
    177     return (this->particleSystem_->getSpeedFactor() / Orxonox::getSingleton().getTimeFactor());
     177    return (this->particleSystem_->getSpeedFactor() / Orxonox::getInstance().getTimeFactor());
    178178  }
    179179
Note: See TracChangeset for help on using the changeset viewer.