Changeset 4938 in orxonox.OLD for orxonox/trunk/src/util/garbage_collector.cc
- Timestamp:
- Jul 22, 2005, 11:57:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/garbage_collector.cc
r4836 r4938 18 18 #include "garbage_collector.h" 19 19 20 #include " world.h"20 #include "state.h" 21 21 #include "world_entity.h" 22 22 #include "null_parent.h" … … 39 39 40 40 this->time = 0; 41 this->delay = 1.5f; /* clean up all 5.0 seconds */41 this->delay = 5.0f; /* clean up all 5.0 seconds */ 42 42 } 43 43 … … 104 104 PRINTF(3)("=============================\n"); 105 105 int counter = 0; 106 WorldInterface* wi = WorldInterface::getInstance(); 107 tList<WorldEntity>* list = wi->getEntityList();106 107 tList<WorldEntity>* list = State::getWorldEntityList(); 108 108 109 109 tIterator<WorldEntity>* iterator = list->getIterator(); … … 121 121 entity->remove(); 122 122 /* then finaly delete reference */ 123 delete entity; 123 //delete entity; 124 //FastFactory::kill(); 124 125 //ObjectManager::getInstance()->addToDeadList(entity->getClassID() & CL_MASK_LOWLEVEL_CLASS, entity); 125 126 }
Note: See TracChangeset
for help on using the changeset viewer.