Changeset 4934 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/test_gun.cc
- Timestamp:
- Jul 22, 2005, 6:41:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/test_gun.cc
r4932 r4934 111 111 112 112 this->setActionSound(WA_SHOOT, "sound/shot1.wav"); 113 114 this->bulletFactory = tFastFactory<TestBullet>::getFastFactory(CL_TEST_BULLET, "TestBullet"); 115 this->bulletFactory->prepare(100); 113 116 } 114 117 … … 155 158 void TestGun::fire() 156 159 { 157 Projectile* pj = new TestBullet();//dynamic_cast<Projectile*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET & CL_MASK_LOWLEVEL_CLASS));160 Projectile* pj = this->bulletFactory->resurect();//new TestBullet();//dynamic_cast<Projectile*>(ObjectManager::getInstance()->getFromDeadList(CL_TEST_BULLET & CL_MASK_LOWLEVEL_CLASS)); 158 161 // weaponSource->play(); 159 162
Note: See TracChangeset
for help on using the changeset viewer.