- Timestamp:
- Jun 4, 2012, 10:50:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/PickupSpawner.cc
r8891 r9279 199 199 200 200 Vector3 distance = it->getWorldPosition() - this->getWorldPosition(); 201 PickupCarrier* carrier = dynamic_cast<PickupCarrier*>(*it);201 PickupCarrier* carrier = orxonox_cast<PickupCarrier*>(*it); 202 202 // If a PickupCarrier, that fits the target-range of the Pickupable spawned by this PickupSpawner, is in trigger-distance and the carrier is not blocked. 203 203 if(distance.length() < this->triggerDistance_ && carrier != NULL && this->blocked_.find(carrier) == this->blocked_.end()) … … 303 303 orxout(verbose, context::pickups) << "PickupSpawner (&" << this << ") triggered and active." << endl; 304 304 305 PickupCarrier* carrier = dynamic_cast<PickupCarrier*>(pawn);305 PickupCarrier* carrier = orxonox_cast<PickupCarrier*>(pawn); 306 306 assert(carrier); 307 307
Note: See TracChangeset
for help on using the changeset viewer.