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

    r8713 r9279  
    148148    {
    149149        SUPER(ShrinkPickup, changedPickedUp);
    150        
     150
    151151        if(!this->isPickedUp() && this->isActive_)
    152152        {
     
    271271
    272272                bool destroy = false;
    273                
     273
    274274                // Stop shrinking if the desired size is reached.
    275275                if(this->timeRemainig_ <= 0.0f)
     
    314314    {
    315315        PickupCarrier* carrier = this->getCarrier();
    316         Pawn* pawn = dynamic_cast<Pawn*>(carrier);
     316        Pawn* pawn = orxonox_cast<Pawn*>(carrier);
    317317
    318318        return pawn;
     
    331331
    332332        SUPER(ShrinkPickup, clone, item);
    333         ShrinkPickup* pickup = dynamic_cast<ShrinkPickup*>(item);
     333        ShrinkPickup* pickup = orxonox_cast<ShrinkPickup*>(item);
    334334        pickup->setShrinkFactor(this->getShrinkFactor());
    335335        pickup->setDuration(this->getDuration());
Note: See TracChangeset for help on using the changeset viewer.