Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8793 for code


Ignore:
Timestamp:
Jul 28, 2011, 5:24:32 PM (13 years ago)
Author:
jo
Message:

Destructor update.

Location:
code/branches/ai2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/data/levels/lastTeamStanding.oxw

    r8706 r8793  
    4747    </StaticEntity>
    4848
    49     <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
    50       <pickup>
    51         <InvisiblePickup template=mediuminvisiblepickup />
    52       </pickup>
    53     </PickupSpawner>
    54     <PickupSpawner position="-160,60,17" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
     49    <PickupSpawner position="-160,60,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->
    5550      <pickup>
    5651        <InvisiblePickup template=hugeinvisiblepickup />
  • code/branches/ai2/src/orxonox/controllers/ArtificialController.cc

    r8792 r8793  
    104104        if (this->isInitialized())
    105105        {//Vector-implementation: mode_.erase(mode_.begin(),mode_.end());
    106             for (size_t i = 0; i < this->waypoints_.size(); ++i)
    107             {
    108                 if(this->waypoints_[i])
    109                     this->waypoints_[i]->destroy();
    110             }
    111             //this->waypoints_.clear();
     106            this->waypoints_.clear();
    112107            this->removeFromFormation();
    113108            this->weaponModes_.clear();
  • code/branches/ai2/src/orxonox/controllers/WaypointController.cc

    r8786 r8793  
    4545    WaypointController::~WaypointController()
    4646    {
     47        for (size_t i = 0; i < this->waypoints_.size(); ++i)
     48        {
     49            if(this->waypoints_[i])
     50                this->waypoints_[i]->destroy();
     51        }
    4752    }
    4853
Note: See TracChangeset for help on using the changeset viewer.