Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4145 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
May 10, 2005, 4:54:00 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: every world-entity saves the speed of its own

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4136 r4145  
    11121112     
    11131113      /* function to let all entities tick (iterate through list) */
    1114       float seconds = this->dt / 1000.0;     
    1115       this->gameTime += seconds;
     1114      this->dtS = (float)this->dt / 1000.0;     
     1115      this->gameTime += this->dtS;
    11161116      //entity = entities->enumerate();
    11171117      tIterator<WorldEntity>* iterator = this->entities->getIterator();
     
    11191119      while( entity != NULL)
    11201120        {
    1121           entity->tick (seconds);
     1121          entity->tick (this->dtS);
    11221122          entity = iterator->nextElement();
    11231123        }
     
    11271127      this->trackManager->tick(this->dt);
    11281128      this->localCamera->tick(this->dt);
    1129       this->garbageCollector->tick(seconds);
    1130 
    1131       AnimationPlayer::getInstance()->tick(seconds);
     1129      this->garbageCollector->tick(this->dtS);
     1130
     1131      AnimationPlayer::getInstance()->tick(this->dtS);
    11321132    }
    11331133  this->lastFrame = currentFrame;
     
    11441144{
    11451145  this->garbageCollector->update();
    1146   this->nullParent->update (dt);
     1146  this->nullParent->update (this->dtS);
    11471147}
    11481148
Note: See TracChangeset for help on using the changeset viewer.