Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 4, 2012, 9:40:54 PM (12 years ago)
Author:
landauf
Message:

small cleanup of damage multiplier: added 'const' to getter and removed unnecessary dynamic_cast

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/orxonox/worldentities/pawns/Pawn.cc

    r9272 r9277  
    231231    void Pawn::damage(float damage, float healthdamage, float shielddamage, Pawn* originator)
    232232    {
    233         //Applies multiplier given by the DamageBoost Pickup.
    234         Pawn *test = dynamic_cast<Pawn *>(originator);
    235         if( test != NULL )
    236         {
    237             damage *= originator->getDamageMultiplier();
    238         }
     233        // Applies multiplier given by the DamageBoost Pickup.
     234        damage *= originator->getDamageMultiplier();
    239235
    240236        if (this->getGametype() && this->getGametype()->allowPawnDamage(this, originator))
Note: See TracChangeset for help on using the changeset viewer.