Changeset 6713
- Timestamp:
- Apr 13, 2010, 10:49:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/items/SpeedPickup.cc
r6709 r6713 79 79 this->speedMultiply_ = 1.0f; 80 80 81 this->addTarget(ClassIdentifier< Pawn>::getIdentifier());81 this->addTarget(ClassIdentifier<Engine>::getIdentifier()); 82 82 } 83 83 … … 166 166 { 167 167 PickupCarrier* carrier = this->getCarrier(); 168 SpaceShip* ship = dynamic_cast<SpaceShip*>(carrier);169 170 if( ship== NULL)168 Engine* engine = dynamic_cast<Engine*>(carrier); 169 170 if(engine == NULL) 171 171 { 172 172 COUT(1) << "Invalid PickupCarrier in SpeedPickup." << std::endl; 173 173 } 174 else 175 { 176 return ship->getEngine(); 177 } 178 179 return 0; 174 175 return engine; 180 176 } 181 177
Note: See TracChangeset
for help on using the changeset viewer.