- Timestamp:
- Dec 16, 2017, 12:52:32 PM (8 years ago)
- Location:
- code/branches/Presentation_HS17
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17
-
code/branches/Presentation_HS17/src/modules/pickup/PickupSpawner.cc
r11103 r11679 158 158 for(Pawn* pawn : ObjectList<Pawn>()) 159 159 { 160 if(spawner == nullptr) // Stop if the PickupSpawner has been deleted (e.g. because it has run out of pickups to distribute). 160 // Stop if the PickupSpawner has been deleted (e.g. because it has run out of pickups to distribute). 2nd condition prevents a possible error in isTarget(...) below. 161 if(spawner == nullptr || this->pickup_ == nullptr) 161 162 break; 163 164 if(!(pawn->doesAcceptPickups())){continue;} // skip those pawns, e.g. AsteroidMinables. 162 165 163 166 Vector3 distance = pawn->getWorldPosition() - this->getWorldPosition();
Note: See TracChangeset
for help on using the changeset viewer.