Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 27, 2011, 9:21:29 PM (13 years ago)
Author:
jo
Message:

Yeay, works. The pickuping efficiency isn't as good as expected though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/src/orxonox/controllers/ArtificialController.cc

    r8791 r8792  
    105105        {//Vector-implementation: mode_.erase(mode_.begin(),mode_.end());
    106106            for (size_t i = 0; i < this->waypoints_.size(); ++i)
    107                 this->waypoints_[i]->destroy();
     107            {
     108                if(this->waypoints_[i])
     109                    this->waypoints_[i]->destroy();
     110            }
     111            //this->waypoints_.clear();
    108112            this->removeFromFormation();
    109113            this->weaponModes_.clear();
     
    11961200    {
    11971201        if(!defaultWaypoint_)
    1198             this->updatePointsOfInterest("PickupSpawner", 60.0f); // long search radius if there is no default goal
     1202            this->updatePointsOfInterest("PickupSpawner", 200.0f); // long search radius if there is no default goal
    11991203        else
    12001204            this->updatePointsOfInterest("PickupSpawner", 20.0f); // take pickup en passant if there is a default waypoint
Note: See TracChangeset for help on using the changeset viewer.