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/PickupRepresentation.cc

    r6478 r6484  
    103103       
    104104        PickupManager::getInstance().registerRepresentation(this->pickup_->getPickupIdentifier(), this); //!< Registers the PickupRepresentation with the PickupManager through the PickupIdentifier of the Pickupable it represents.
     105       
     106        if(this->spawnerRepresentation_ != NULL)
     107            this->spawnerRepresentation_->setVisible(false);
     108       
     109        COUT(4) << "PickupRepresentation created: name: '" << this->name_ << "', description: '" << this->description_ << "', spawnerTemplate: '" << this->spawnerTemplate_ << "'." << std::endl;
    105110    }
    106111   
     
    128133       
    129134        StaticEntity* representation = this->spawnerRepresentation_;
     135        representation->setVisible(true);
    130136       
    131137        this->addTemplate(this->spawnerTemplate_);
     138        this->spawnerRepresentation_->setVisible(false);
    132139       
    133140        return representation;
Note: See TracChangeset for help on using the changeset viewer.