Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2016, 6:01:02 PM (8 years ago)
Author:
patricwi
Message:

bug when ending or restarting a game with non-empty inventory and size and address of pickups still has to be specified so that the item corresponds to the right pickup symbol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc

    r11314 r11323  
    266266        assert(pickup);
    267267
    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       
    273272        assert(pickupSystem); //pickupSystem HAS to be there!
    274273
     
    321320
    322321            pickupSystem->removePickup(pickup);
    323             pickupSystem->updatePickupList(picks);
    324322        }
    325323
     
    366364        orxout() << "The pickup is being used: " << pickup->isUsed() << endl;
    367365
    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);
    372371    }
    373372
Note: See TracChangeset for help on using the changeset viewer.