- Timestamp:
- Dec 3, 2008, 4:07:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickups2/src/orxonox/objects/pickup/Turbo.cc
r2289 r2324 42 42 { 43 43 SpaceShip* ship = dynamic_cast <SpaceShip*>(player); 44 this->setSpeedBoost(ship); 45 if(duration_==0) 46 addTo(player); 47 return true; 44 if(duration_==0 ) 45 { if(addTo(player)) 46 { 47 this->setSpeedBoost(ship); 48 return true; 49 } 50 } 51 else 52 { 53 this->setSpeedBoost(ship); 54 return true; 55 } 56 return false; 48 57 } 49 58 return false; … … 79 88 if (this->duration_ == 0) 80 89 { 90 COUT(0) << "dropped" << std::endl; 81 91 if(remove(player)==true); 82 92 {
Note: See TracChangeset
for help on using the changeset viewer.