Changeset 7544 for code/trunk/src/modules/pickup/items/InvisiblePickup.cc
- Timestamp:
- Oct 15, 2010, 8:14:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/items/InvisiblePickup.cc
r7541 r7544 116 116 if (this->isUsed()) 117 117 { 118 if(this->isContinuous() 118 if(this->isContinuous()) 119 119 { 120 120 if(!this->durationTimer_.isActive() && this->durationTimer_.getRemainingTime() > 0.0f) … … 135 135 this->setInvisible(false); 136 136 137 if( !this->durationTimer_.isActive() && this->durationTimer_.getRemainingTime() == this->getDuration())137 if(this->isContinuous() || !this->durationTimer_.isActive() && this->durationTimer_.getRemainingTime() == this->getDuration()) 138 138 { 139 139 this->Pickupable::destroy(); … … 213 213 /** 214 214 @brief 215 Sets the duration.215 Sets the time the InvisibilityPickup will last. 216 216 @param duration 217 The duration 217 The duration in seconds. 218 218 */ 219 219 void InvisiblePickup::setDuration(float duration) … … 230 230 } 231 231 232 /** 233 @brief 234 Helper method. Is called by the Timer as soon as it expires. 235 */ 232 236 void InvisiblePickup::pickupTimerCallback(void) 233 237 {
Note: See TracChangeset
for help on using the changeset viewer.