Changeset 5356 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc
- Timestamp:
- Oct 10, 2005, 8:17:44 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/turret.cc
r5355 r5356 28 28 29 29 #include "factory.h" 30 #include "fast_factory.h"31 30 32 31 CREATE_FACTORY(Turret); … … 93 92 94 93 95 this->setProjectile (CL_TEST_BULLET);94 this->setProjectileType(CL_TEST_BULLET); 96 95 97 96 … … 133 132 void Turret::fire() 134 133 { 135 Projectile* pj = dynamic_cast<Projectile*>(this->getProjectileFactory()->resurrect()); 134 Projectile* pj = this->getProjectile(); 135 if (pj == NULL) 136 return; 136 137 137 138 PNode* target = this->getWeaponManager()->getFixedTarget();
Note: See TracChangeset
for help on using the changeset viewer.