Changeset 6575 for code/branches/ppspickups1/src/modules
- Timestamp:
- Mar 20, 2010, 7:45:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ppspickups1/src/modules/pickup/items/SpeedPickup.cc
r6574 r6575 74 74 void SpeedPickup::initialize(void) 75 75 { 76 this->duration_ = 0 ;77 this->speedAdd_ = 0 ;78 this->speedMultiply_ = 0;76 this->duration_ = 0.0; 77 this->speedAdd_ = 0.0; 78 this->speedMultiply_ = 1.0; 79 79 80 80 this->addTarget(ClassIdentifier<Pawn>::getIdentifier()); … … 269 269 void SpeedPickup::setSpeedMultiply(float speedMultiply) 270 270 { 271 if(speedMultiply >0.0f)271 if(speedMultiply != 0.0f) 272 272 { 273 273 this->speedMultiply_ = speedMultiply; … … 276 276 { 277 277 COUT(1) << "Invalid speedMultiply in SpeedPickup." << std::endl; 278 this->speedMultiply_ = 0.0;278 this->speedMultiply_ = 1.0; 279 279 } 280 280 }
Note: See TracChangeset
for help on using the changeset viewer.