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/ShieldPickup.cc

    r8858 r9279  
    177177    {
    178178        PickupCarrier* carrier = this->getCarrier();
    179         Pawn* pawn = dynamic_cast<Pawn*>(carrier);
     179        Pawn* pawn = orxonox_cast<Pawn*>(carrier);
    180180
    181181        if(pawn == NULL)
     
    199199        SUPER(ShieldPickup, clone, item);
    200200
    201         ShieldPickup* pickup = dynamic_cast<ShieldPickup*>(item);
     201        ShieldPickup* pickup = orxonox_cast<ShieldPickup*>(item);
    202202        pickup->setDuration(this->getDuration());
    203203        pickup->setShieldAbsorption(this->getShieldAbsorption());
Note: See TracChangeset for help on using the changeset viewer.