Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 7, 2010, 11:00:05 PM (15 years ago)
Author:
dafrick
Message:

Cleanup and bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup3/src/modules/pickup/PickupSpawner.cc

    r6478 r6484  
    147147        {
    148148            PickupRepresentation* representation = PickupManager::getInstance().getRepresentation(this->pickup_->getPickupIdentifier());
     149            representation->setVisible(this->isActive());
    149150            this->attach(representation->getSpawnerRepresentation(this));
     151            this->setActive(true);
    150152        }
    151153    }
     
    273275    void PickupSpawner::trigger(Pawn* pawn)
    274276    {
    275         if (this->isActive()) //!< Checks whether PickupItem is active.
    276         {
     277        COUT(1) << "PickupSpawner triggered." << std::endl;
     278        if (this->isActive()) //!< Checks whether PickupSpawner is active.
     279        {
     280            COUT(1) << "PickupSpawner triggered and active." << std::endl;
     281           
    277282            PickupCarrier* carrier = dynamic_cast<PickupCarrier*>(pawn);
    278283            if(carrier == NULL)
Note: See TracChangeset for help on using the changeset viewer.