Changeset 4947 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon.cc
- Timestamp:
- Jul 23, 2005, 11:17:27 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon.cc
r4934 r4947 80 80 this->emissionPoint.setParent(this); 81 81 82 this->projectile = NULL; 82 this->projectile = CL_NULL; 83 this->projectileFactory = NULL; 83 84 84 85 this->hideInactive = true; … … 93 94 } 94 95 96 /** 97 * sets the Projectile to use for this weapon. 98 * @param projectile The ID of the Projectile to use 99 * 100 * be aware, that this function does not create Factories, as this is job of Bullet-classes. 101 */ 102 bool Weapon::setProjectile(ClassID projectile) 103 { 104 if (projectile == CL_NULL) 105 return false; 106 this->projectile = projectile; 107 this->projectileFactory = FastFactory::searchFastFactory(projectile); 108 if (this->projectileFactory == NULL) 109 return false; 110 }; 95 111 96 112 /** … … 446 462 bool retVal = true; 447 463 448 if (this->projectile == NULL)464 // if (this->projectile == NULL) 449 465 { 450 466 PRINTF(2)("There was no projectile assigned to the Weapon.\n");
Note: See TracChangeset
for help on using the changeset viewer.