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

    r8305 r9279  
    7979        }
    8080        this->pickups_.clear();
    81        
     81
    8282        if(this->pickupCollectionIdentifier_ != NULL)
    8383            delete this->pickupCollectionIdentifier_;
     
    195195            return;
    196196
    197         // If at least all the enabled pickups of this PickupCollection are no longer picked up. 
     197        // If at least all the enabled pickups of this PickupCollection are no longer picked up.
    198198        if(this->pickedUpCounter_ <= this->disabledCounter_ && this->isPickedUp())
    199199            this->Pickupable::destroy();
     
    218218        SUPER(PickupCollection, clone, item);
    219219
    220         PickupCollection* pickup = dynamic_cast<PickupCollection*>(item);
     220        PickupCollection* pickup = orxonox_cast<PickupCollection*>(item);
    221221        // Clone all Pickupables this PickupCollection consist of.
    222222        for(std::vector<CollectiblePickup*>::iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++)
     
    297297        This is used internally by the CollectiblePickup class.
    298298    @param changed
    299         The value the used status has changed to. 
     299        The value the used status has changed to.
    300300    */
    301301    void PickupCollection::pickupChangedUsed(bool changed)
Note: See TracChangeset for help on using the changeset viewer.