Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11510


Ignore:
Timestamp:
Oct 23, 2017, 4:41:56 PM (7 years ago)
Author:
patricwi
Message:

looking for SEGFault

Location:
code/branches/HUD_HS16/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupItem.cc

    r11336 r11510  
    5959    HUDPickupItem::~HUDPickupItem()
    6060    {
    61         if (this->isInitialized())
     61        /*if (this->isInitialized())
    6262        {
    6363            overlayElement_=nullptr;
    64         }
     64        }*/
    6565    }
    6666
     
    7979        assert(this->background_);
    8080        overlayElement_->hide();
    81         this->background_->removeChild(overlayElement_->getName());
     81        //this->background_->removeChild(overlayElement_->getName());
    8282    }
    8383}
  • code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.cc

    r11351 r11510  
    5656    HUDPickupSystem::~HUDPickupSystem()
    5757    {
    58         if (this->isInitialized())
     58        /*if (this->isInitialized())
    5959        {
    6060            this->picks.clear();
    61         }
     61        }*/
    6262    }
    6363
     
    107107    {
    108108        assert(pickup);
     109        orxout()<< "removePickup called with " << pickup << endl;
    109110        HUDPickupItem* item = this->picks.find(pickup)->second;
    110         orxout(internal_info, context::pickups) << "removePickup: pickup= " << pickup << " item= " << item << endl;
    111         assert(item);
     111        orxout() << "removePickup: pickup= " << pickup << " item= " << item << endl;
     112        //assert(item);
    112113        item->hideMe(pickup, repaint);
    113         assert(overlayElement_);
    114         assert(this->background_);
    115         this->picks.erase(pickup);
     114        orxout() << "i am hidden now" << endl;
     115        //assert(overlayElement_);
     116        //assert(this->background_);
     117        //this->picks.erase(pickup);
     118        orxout()<< "end removePickup method" << endl;
    116119    }
    117120
  • code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc

    r11336 r11510  
    103103        // Destroying all the WeakPointers that are still there.
    104104        this->pickups_.clear();
    105 
    106105        this->indexes_.clear();
    107106
    108         orxout(internal_info, context::pickups) << "PickupManager destroyed." << endl;
     107        orxout() << "PickupManager destroyed." << endl;
    109108    }
    110109
     
    317316            if(pickupSystem)
    318317                pickupSystem->removePickup(pickup);
     318            orxout() << "end of pickupChangedPickedUp" << endl;
    319319        }
    320320
  • code/branches/HUD_HS16/src/orxonox/interfaces/Pickupable.cc

    r11071 r11510  
    8080        if(this->isPickedUp())
    8181            this->drop(false); // Drops the pickup without creating a PickupSpawner.
     82        orxout()<< "end of preDestroy" << endl;
    8283    }
    8384
     
    9899    void Pickupable::destroyPickup(void)
    99100    {
     101        orxout()<< "beginning of actual destroy" << endl;
    100102        if(!this->isBeingDestroyed())
    101103            this->Destroyable::destroy();
    102104        else
    103105            orxout(internal_warning, context::pickups) << this->getIdentifier()->getName() << " may be unsafe. " << endl;
     106        orxout()<<"end of actual destroy" << endl;
    104107    }
    105108
Note: See TracChangeset for help on using the changeset viewer.