Changeset 6540 for code/trunk/src/modules/weapons
- Timestamp:
- Mar 16, 2010, 9:35:11 PM (15 years ago)
- Location:
- code/trunk/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/projectiles/Projectile.cc
r6524 r6540 123 123 } 124 124 125 float dmg = this->damage_;126 //TODO: Remove.127 // if (this->owner_)128 // dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false);129 130 125 Pawn* victim = orxonox_cast<Pawn*>(otherObject); 131 126 if (victim) 132 victim->hit(this->owner_, contactPoint, dmg);127 victim->hit(this->owner_, contactPoint, this->damage_); 133 128 } 134 129 return false; -
code/trunk/src/modules/weapons/projectiles/Rocket.cc
r6524 r6540 200 200 } 201 201 202 float dmg = this->damage_;203 //TODO: This souldn't be necessary here.204 //if (this->owner_)205 // dmg = this->owner_->getPickups().processModifiers(ModifierType::Damage, dmg, false);206 207 202 Pawn* victim = orxonox_cast<Pawn*>(otherObject); 208 203 if (victim) 209 victim->hit(this->owner_, contactPoint, dmg);204 victim->hit(this->owner_, contactPoint, this->damage_); 210 205 // this->destroy(); 211 206 }
Note: See TracChangeset
for help on using the changeset viewer.