Changeset 5356 in orxonox.OLD for trunk/src/world_entities/weapons/test_gun.cc
- Timestamp:
- Oct 10, 2005, 8:17:44 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/test_gun.cc
r5355 r5356 134 134 this->setActionSound(WA_SHOOT, "sound/shot1.wav"); 135 135 136 this->setProjectile (CL_TEST_BULLET);137 this-> getProjectileFactory()->prepare(20);136 this->setProjectileType(CL_TEST_BULLET); 137 this->prepareProjectiles(20); 138 138 } 139 139 … … 178 178 void TestGun::fire() 179 179 { 180 Projectile* pj = dynamic_cast<Projectile*>(this->getProjectileFactory()->resurrect()); 180 Projectile* pj = this->getProjectile(); 181 if (pj == NULL) 182 return; 181 183 182 184 pj->setParent(NullParent::getInstance());
Note: See TracChangeset
for help on using the changeset viewer.