Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4289 in orxonox.OLD for orxonox/trunk/src/world_entities


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

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

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.cc

    r4287 r4289  
    106106  this->weaponMan->addWeapon(wpRight, W_CONFIG2);
    107107  this->weaponMan->addWeapon(wpLeft, W_CONFIG2);
    108 
    109   BaseObject* p = new Projectile(wpRight);
    110   ObjectManager::getInstance()->cache(CL_PROJECTILE, 100, *p);
    111   ObjectManager::getInstance()->debug();
    112 
    113108}
    114109
  • orxonox/trunk/src/world_entities/test_gun.cc

    r4287 r4289  
    3232#include "animation3d.h"
    3333
     34#include "object_manager.h"
    3435
    3536using namespace std;
     
    8889    }
    8990
     91  BaseObject* p = new TestBullet(this);
     92  ObjectManager::getInstance()->cache(CL_TEST_BULLET, 100, *p);
     93  ObjectManager::getInstance()->debug();
    9094}
    9195
Note: See TracChangeset for help on using the changeset viewer.