Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 26, 2005, 12:49:50 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now all unused projectiles are added to the dead list and not deleted anymore

File:
1 edited

Legend:

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

    r4262 r4289  
    2525
    2626#include "list.h"
     27#include "object_manager.h"
    2728
    2829using namespace std;
     
    137138          entity->remove();
    138139          /* then finaly delete reference */
    139           delete entity;
     140          //delete entity;
     141          ObjectManager::getInstance()->addToDeadList(CL_TEST_BULLET, entity);
     142          ObjectManager::getInstance()->debug();
    140143        }
    141144      entity = iterator->nextElement();
Note: See TracChangeset for help on using the changeset viewer.