Changeset 1406 for code/branches/network/src/orxonox/Orxonox.cc
- Timestamp:
- May 24, 2008, 1:39:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/Orxonox.cc
r1391 r1406 181 181 { 182 182 // 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_; 185 185 Loader::close(); 186 186 InputManager::destroy(); … … 350 350 // Load the HUD 351 351 COUT(3) << "Orxonox: Loading HUD..." << std::endl; 352 orxonoxHUD_ = new HUD(1);352 orxonoxHUD_ = &HUD::getSingleton(); 353 353 354 354 COUT(3) << "Orxonox: Loading Console..." << std::endl; … … 490 490 // orxonoxHUD_->setRocket2(ogreRoot.getCurrentFrameNumber()); 491 491 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())); 493 493 494 494 // Iterate through all Tickables and call their tick(dt) function
Note: See TracChangeset
for help on using the changeset viewer.