Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 1:39:05 PM (16 years ago)
Author:
rgrieder
Message:
  • merged Felix's changes from trunk to network branch
  • added "svn:eol-style native" property to keybindings.ini
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/Orxonox.cc

    r1391 r1406  
    181181  {
    182182    // keep in mind: the order of deletion is very important!
    183     if (this->orxonoxHUD_)
    184       delete this->orxonoxHUD_;
     183//    if (this->orxonoxHUD_)
     184//      delete this->orxonoxHUD_;
    185185    Loader::close();
    186186    InputManager::destroy();
     
    350350    // Load the HUD
    351351    COUT(3) << "Orxonox: Loading HUD..." << std::endl;
    352     orxonoxHUD_ = new HUD(1);
     352    orxonoxHUD_ = &HUD::getSingleton();
    353353
    354354    COUT(3) << "Orxonox: Loading Console..." << std::endl;
     
    490490//      orxonoxHUD_->setRocket2(ogreRoot.getCurrentFrameNumber());
    491491      if (eventTimes[3].back() - eventTimes[3].front() != 0)
    492 //        orxonoxHUD_->setRocket1((int)(50000.0f/(eventTimes[3].back() - eventTimes[3].front())));
     492        HUD::setFPS(50000.0f/(eventTimes[3].back() - eventTimes[3].front()));
    493493
    494494      // Iterate through all Tickables and call their tick(dt) function
Note: See TracChangeset for help on using the changeset viewer.