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

    r10923 r10925  
    120120        {
    121121            ActionpointController* newLeader = (findNewLeader());
     122            if (!this || !this->getControllableEntity())
     123                return;
     124
    122125            this->myLeader_ = newLeader;
    123126            if (this->myLeader_)
     
    147150            else if (!this->myLeader_->bKeepFormation_)
    148151            {
     152                if (!this || !this->getControllableEntity())
     153                    return;
     154
    149155                if (!this->hasTarget())
    150156                {
     
    175181    Vector3 WingmanController::getFormationPosition ()
    176182    {
     183
     184
    177185        this->setFormationMode( this->myLeader_->getFormationMode() );
    178186        Vector3* targetRelativePosition;
Note: See TracChangeset for help on using the changeset viewer.