Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2008, 11:26:34 AM (16 years ago)
Author:
rgrieder
Message:

added TickableReal to tick objects that shouldn't be affected by setTimeFactor

File:
1 edited

Legend:

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

    r1259 r1271  
    490490      for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it)
    491491        it->tick((float)evt.timeSinceLastFrame * this->timefactor_);
    492       orxonoxConsole_->tick((float)evt.timeSinceLastFrame * this->timefactor_);
     492      // Iterate through all TickableReals and call their tick(dt) function
     493      for (Iterator<TickableReal> it = ObjectList<TickableReal>::start(); it; ++it)
     494        it->tick((float)evt.timeSinceLastFrame);
     495      orxonoxConsole_->tick((float)evt.timeSinceLastFrame);
    493496
    494497      // don't forget to call _fireFrameStarted in ogre to make sure
Note: See TracChangeset for help on using the changeset viewer.