Changeset 4979 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon.cc
- Timestamp:
- Aug 10, 2005, 4:47:23 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon.cc
r4972 r4979 127 127 this->projectileFactory = FastFactory::searchFastFactory(projectile); 128 128 if (this->projectileFactory == NULL) 129 { 130 PRINTF(1)("unable to find FastFactory for the Projectile.\n"); 129 131 return; 132 } 130 133 else 131 134 { 132 135 // grabbing Parameters from the Projectile to have them at hand here. 133 this->projectileFactory->prepare(1);134 136 Projectile* pj = dynamic_cast<Projectile*>(this->projectileFactory->resurrect()); 135 137 this->minCharge = pj->getEnergyMin(); 136 138 this->maxCharge = pj->getEnergyMax(); 137 139 this->chargeable = pj->isChageable(); 138 } 139 }; 140 this->projectileFactory->kill(pj); 141 } 142 } 140 143 141 144 /**
Note: See TracChangeset
for help on using the changeset viewer.