Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2015, 8:46:09 PM (8 years ago)
Author:
gania
Message:

finished everything, demos are commented out in AITest.oxw

File:
1 edited

Legend:

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

    r10859 r10861  
    8383    {   
    8484        if (!this->isActive())
    85             return;
     85            return;   
    8686        SUPER(DivisionController, tick, dt);
    8787    }
     
    9090        if (!this || !this->getControllableEntity())
    9191            return;
     92       
    9293        CommonController::action();
     94        if (!this || !this->getControllableEntity())
     95            return;
     96        if (!(this->parsedActionpoints_.empty() && this->loopActionpoints_.empty()))
     97        {
     98            if (this->myFollower_)
     99            {
     100                this->myFollower_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_);
     101            }
     102            else if (this->myWingman_)
     103            {
     104                this->myWingman_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_);
     105            }   
     106        }
    93107       
    94108    }
Note: See TracChangeset for help on using the changeset viewer.