Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 4, 2012, 10:50:28 PM (12 years ago)
Author:
landauf
Message:

use orxonox_cast instead of dynamic_cast wherever possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/modules/pickup/items/HealthPickup.cc

    r8864 r9279  
    230230            {
    231231                PickupCarrier* carrier = this->getCarrier();
    232                 Pawn* pawn = dynamic_cast<Pawn*>(carrier);
     232                Pawn* pawn = orxonox_cast<Pawn*>(carrier);
    233233
    234234                if(pawn == NULL)
     
    264264    {
    265265        PickupCarrier* carrier = this->getCarrier();
    266         Pawn* pawn = dynamic_cast<Pawn*>(carrier);
     266        Pawn* pawn = orxonox_cast<Pawn*>(carrier);
    267267
    268268        if(pawn == NULL)
     
    285285        SUPER(HealthPickup, clone, item);
    286286
    287         HealthPickup* pickup = dynamic_cast<HealthPickup*>(item);
     287        HealthPickup* pickup = orxonox_cast<HealthPickup*>(item);
    288288        pickup->setHealth(this->getHealth());
    289289        pickup->setHealthRate(this->getHealthRate());
Note: See TracChangeset for help on using the changeset viewer.