Changeset 1387 for code/trunk/src/orxonox/Orxonox.cc
- Timestamp:
- May 22, 2008, 5:22:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Orxonox.cc
r1374 r1387 180 180 { 181 181 // keep in mind: the order of deletion is very important! 182 if (this->orxonoxHUD_)183 delete this->orxonoxHUD_;182 // if (this->orxonoxHUD_) 183 // delete this->orxonoxHUD_; 184 184 Loader::close(); 185 185 InputManager::destroy(); … … 348 348 // Load the HUD 349 349 COUT(3) << "Orxonox: Loading HUD..." << std::endl; 350 orxonoxHUD_ = new HUD(1);350 orxonoxHUD_ = &HUD::getSingleton(); 351 351 352 352 COUT(3) << "Orxonox: Loading Console..." << std::endl; … … 487 487 // orxonoxHUD_->setRocket2(ogreRoot.getCurrentFrameNumber()); 488 488 if (eventTimes[3].back() - eventTimes[3].front() != 0) 489 orxonoxHUD_->setFPS(50000.0f/(eventTimes[3].back() - eventTimes[3].front()));489 HUD::setFPS(50000.0f/(eventTimes[3].back() - eventTimes[3].front())); 490 490 491 491 // Iterate through all Tickables and call their tick(dt) function
Note: See TracChangeset
for help on using the changeset viewer.