Changeset 7801 for code/trunk/src/modules/pickup
- Timestamp:
- Dec 22, 2010, 7:24:24 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/pickup/PickupManager.cc
r7549 r7801 61 61 /*static*/ const std::string PickupManager::guiName_s = "PickupInventory"; 62 62 63 // Register static ne wtork functions that are used to communicate changes to pickups over the network, such that the PickupInventory can display the information about the pickups properly.63 // Register static network functions that are used to communicate changes to pickups over the network, such that the PickupInventory can display the information about the pickups properly. 64 64 registerStaticNetworkFunction(PickupManager::pickupChangedUsedNetwork); 65 65 registerStaticNetworkFunction(PickupManager::pickupChangedPickedUpNetwork); -
code/trunk/src/modules/pickup/PickupSpawner.cc
r7549 r7801 120 120 PickupSpawner::~PickupSpawner() 121 121 { 122 if(this-> selfDestruct_ && this->pickup_ != NULL)122 if(this->isInitialized() && this->selfDestruct_ && this->pickup_ != NULL) 123 123 this->pickup_->destroy(); 124 124 } … … 317 317 assert(pickup); 318 318 assert(target); 319 assert(pickup->pickup(target)); 319 bool pickedUp = pickup->pickup(target); 320 assert(pickedUp); 321 pickedUp = false; // To avoid compiler warning. 320 322 321 323 this->decrementSpawnsRemaining();
Note: See TracChangeset
for help on using the changeset viewer.