- Timestamp:
- Aug 8, 2010, 8:53:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/pickup/PickupManager.cc
r7150 r7162 43 43 #include "infos/PlayerInfo.h" 44 44 #include "worldentities/pawns/Pawn.h" 45 #include "CollectiblePickup.h" 45 46 #include "PickupRepresentation.h" 46 47 … … 64 65 RegisterRootObject(PickupManager); 65 66 67 //TODO: This doesn't work, yet. 66 68 if( GameMode::showsGraphics() ) 67 69 { … … 172 174 for(std::set<Pickupable*>::iterator pickup = pickups.begin(); pickup != pickups.end(); pickup++) 173 175 { 174 this->pickupsList_.insert(std::pair<Pickupable*, WeakPtr<Pickupable> >(*pickup, WeakPtr<Pickupable>(*pickup))); 176 CollectiblePickup* collectible = orxonox_cast<CollectiblePickup*>(*pickup); 177 if(collectible == NULL || !collectible->isInCollection()) 178 this->pickupsList_.insert(std::pair<Pickupable*, WeakPtr<Pickupable> >(*pickup, WeakPtr<Pickupable>(*pickup))); 175 179 } 176 180 }
Note: See TracChangeset
for help on using the changeset viewer.