Changeset 2807 for code/branches/gui/src/orxonox
- Timestamp:
- Mar 19, 2009, 6:11:00 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/Game.cc
r2805 r2807 89 89 this->abort_ = false; 90 90 91 this->core_ = new orxonox::Core(argc, argv); 92 if (!this->core_->isLoaded()) 93 { 94 COUT(0) << "Core was not fully loaded, probably an exception occurred during consruction. Aborting" << std::endl; 95 abort(); 96 } 91 this->core_ = new orxonox::Core(); 92 this->gameClock_ = this->core_->initialise(argc, argv); 97 93 } 98 94 … … 142 138 root.addChild(&dedicated); 143 139 144 145 // start global orxonox time146 Clock clock;147 148 140 root.activate(); 149 141 … … 153 145 while (!this->abort_) 154 146 { 155 clock.capture();147 this->gameClock_->capture(); 156 148 157 root.tick( clock);149 root.tick(*this->gameClock_); 158 150 159 151 if (root.stateRequest_ != "") -
code/branches/gui/src/orxonox/Game.h
r2805 r2807 61 61 62 62 Core* core_; 63 Clock* gameClock_; 63 64 64 65 bool abort_; -
code/branches/gui/src/orxonox/gamestates/GSClient.cc
r2801 r2807 61 61 GSLevel::enter(); 62 62 63 // TODO: Get Clock from Game or GameStateManager, but with 0 delta time 64 client_->update(Clock()); 63 client_->update(Core::getGameClock()); 65 64 } 66 65
Note: See TracChangeset
for help on using the changeset viewer.