Changeset 3654 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Mar 25, 2005, 6:47:26 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3653 r3654 755 755 756 756 /* function to let all entities tick (iterate through list) */ 757 WorldEntity* entity;758 757 float seconds = this->dt / 1000.0; 759 758 this->gameTime += seconds; 760 entity = entities->enumerate(); 759 //entity = entities->enumerate(); 760 tIterator<WorldEntity>* iterator = this->entities->getIterator(); 761 WorldEntity* entity = iterator->nextElement(); 761 762 while( entity != NULL) 762 763 { 763 764 entity->tick (seconds); 764 entity = entities->nextElement();765 entity = iterator->nextElement(); 765 766 } 767 delete iterator; 766 768 //skySphere->updatePosition(localCamera->absCoordinate); 767 769
Note: See TracChangeset
for help on using the changeset viewer.