Changeset 11323 for code/branches/HUD_HS16/src/modules/pickup
- Timestamp:
- Dec 5, 2016, 6:01:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc
r11314 r11323 266 266 assert(pickup); 267 267 268 if(!pickupSystem) 269 { 270 for (HUDPickupSystem* hud : ObjectList<HUDPickupSystem>()) 271 pickupSystem = hud; 272 } 268 269 for (HUDPickupSystem* hud : ObjectList<HUDPickupSystem>()) 270 pickupSystem = hud; 271 273 272 assert(pickupSystem); //pickupSystem HAS to be there! 274 273 … … 321 320 322 321 pickupSystem->removePickup(pickup); 323 pickupSystem->updatePickupList(picks);324 322 } 325 323 … … 366 364 orxout() << "The pickup is being used: " << pickup->isUsed() << endl; 367 365 368 if(pickup->isUsed()) 369 manager.usePickup(index, false); 370 else 371 manager.usePickup(index, true); 366 pickup->drop(true); 367 // if(pickup->isUsed()) 368 // manager.usePickup(index, false); 369 // else 370 // manager.usePickup(index, true); 372 371 } 373 372
Note: See TracChangeset
for help on using the changeset viewer.