Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4322 in orxonox.OLD for orxonox/trunk/src/util/garbage_collector.cc


Ignore:
Timestamp:
May 27, 2005, 1:27:02 AM (20 years ago)
Author:
patrick
Message:

now the objectmanagment works smoothly with the garbage collection: shoots (projectiles) are now precached (100 pieces) used from this pool and recyled :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/garbage_collector.cc

    r4320 r4322  
    139139          /* then finaly delete reference */
    140140          //delete entity;
    141           ObjectManager::getInstance()->addToDeadList(CL_TEST_BULLET, entity);
     141          ObjectManager::getInstance()->addToDeadList(entity->getClassID(), entity);
    142142        }
    143143      entity = iterator->nextElement();
Note: See TracChangeset for help on using the changeset viewer.