Changeset 1001 for code/branches/core2/src/orxonox/tools
- Timestamp:
- Apr 8, 2008, 1:51:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/tools/Timer.h
r995 r1001 63 63 #include "OrxonoxPrereqs.h" 64 64 #include "core/CorePrereqs.h" 65 #include "../objects/Tickable.h" 65 66 66 67 namespace orxonox … … 200 201 bool frameStarted(const Ogre::FrameEvent &evt) 201 202 { 203 float dt = evt.timeSinceLastFrame * getTimeFactor(); 202 204 // Iterate through all Timers 203 205 for (Iterator<TimerBase> it = ObjectList<TimerBase>::start(); it; ) … … 206 208 { 207 209 // If active: Decrease the timer by the duration of the last frame 208 it->time_ -= evt.timeSinceLastFrame;210 it->time_ -= dt; 209 211 210 212 if (it->time_ <= 0)
Note: See TracChangeset
for help on using the changeset viewer.