Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 6, 2010, 7:44:04 PM (15 years ago)
Author:
dafrick
Message:

Some more documenting. Completed HealthPickup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup3/src/orxonox/interfaces/Pickupable.cc

    r6475 r6477  
    6363    Pickupable::~Pickupable()
    6464    {
    65        
     65        if(this->isUsed())
     66            this->setUsed(false);
     67       
     68        if(this->isPickedUp())
     69        {
     70            this->getCarrier()->drop(this, false);
     71            this->setCarrier(NULL);
     72        }
    6673    }
    6774   
Note: See TracChangeset for help on using the changeset viewer.