- Timestamp:
- Nov 27, 2017, 6:53:05 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AsteroidMining_HS17/src/modules/pickup/PickupSpawner.cc
r11103 r11609 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.