Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 9:41:38 AM (8 years ago)
Author:
gania
Message:

synchronized AI with a static tick counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/SectionController.cc

    r10923 r10925  
    9595        {
    9696            ActionpointController* newDivisionLeader = findNewDivisionLeader();
     97            if (!this || !this->getControllableEntity())
     98                return;
     99
    97100            this->myDivisionLeader_ = newDivisionLeader;
    98101            //spread copyOrientation called equally among the division
     
    128131            else if (!this->myDivisionLeader_->bKeepFormation_)
    129132            {
     133                if (!this || !this->getControllableEntity())
     134                    return;
     135
    130136                if (!this->hasTarget())
    131137                {
Note: See TracChangeset for help on using the changeset viewer.