Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 27, 2010, 7:53:30 PM (15 years ago)
Author:
dafrick
Message:

Fixing small bug in Script (regarding number of executions).
Fixed bug in WorldEntity, that caused the visibility and activity to be synchronized incorrectly (since bVisibleMem and bActiveMem are not synchronized).
Some small changed in documentation.
Started "synchronizing" pickups. Seems to work (except GUI), but haven't done any extensive testing yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/DroppedPickup.cc

    r7401 r7493  
    5151    {
    5252        RegisterObject(DroppedPickup);
    53 
    5453    }
    5554
     
    8382    DroppedPickup::~DroppedPickup()
    8483    {
    85         if(this->pickup_ != NULL && this->pickup_->isPickedUp())
    86         {
    87             this->pickup_ = NULL;
    88         }
     84
    8985    }
    9086
     
    9692    Pickupable* DroppedPickup::getPickup(void)
    9793    {
    98         return this->pickup_;
     94        Pickupable* pickup = this->pickup_;
     95        this->pickup_ = NULL;
     96        return pickup;
    9997    }
    10098
Note: See TracChangeset for help on using the changeset viewer.