Changeset 7208 for code/trunk/src/modules/pickup/items/ShieldPickup.cc
- Timestamp:
- Aug 24, 2010, 9:49:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/items/ShieldPickup.cc
r7163 r7208 160 160 if(this->isUsed()) 161 161 { 162 if(!this-> getTimer()->isActive() && this->getTimer()->getRemainingTime() > 0.0f)162 if(!this->durationTimer_.isActive() && this->durationTimer_.getRemainingTime() > 0.0f) 163 163 { 164 this-> getTimer()->unpauseTimer();164 this->durationTimer_.unpauseTimer(); 165 165 } 166 166 else 167 167 { 168 this-> startPickupTimer(this->getDuration());168 this->durationTimer_.setTimer(this->getDuration(), false, createExecutor(createFunctor(&ShieldPickup::pickupTimerCallback, this))); 169 169 } 170 170 pawn->setShieldAbsorption(this->getShieldAbsorption()); … … 179 179 if(this->isOnce()) 180 180 { 181 if(!this-> getTimer()->isActive() && this->getTimer()->getRemainingTime() == this->getDuration())181 if(!this->durationTimer_.isActive() && this->durationTimer_.getRemainingTime() == this->getDuration()) 182 182 { 183 183 this->Pickupable::destroy(); … … 185 185 else 186 186 { 187 this-> getTimer()->pauseTimer();187 this->durationTimer_.pauseTimer(); 188 188 } 189 189 }
Note: See TracChangeset
for help on using the changeset viewer.