- Timestamp:
- Nov 25, 2015, 6:46:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/DivisionController.cc
r10858 r10859 50 50 DivisionController::~DivisionController() 51 51 { 52 if (this->myFollower_) 53 { 54 this->myFollower_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_); 55 if (this->myWingman_) 56 { 57 this->myWingman_->setAction(Action::FIGHTALL); 58 } 59 } 60 else if (this->myWingman_) 61 { 62 this->myWingman_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_); 63 } 52 // if (!(this->parsedActionpoints_.empty() && this->loopActionpoints_.empty())) 53 // { 54 // if (this->myFollower_) 55 // { 56 // this->myFollower_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_); 57 // if (this->myWingman_) 58 // { 59 // this->myWingman_->setAction(Action::FIGHTALL); 60 // } 61 // } 62 // else if (this->myWingman_) 63 // { 64 // this->myWingman_->takeActionpoints(this->parsedActionpoints_, this->loopActionpoints_, this->bLoop_); 65 // } 66 // } 64 67 for (size_t i = 0; i < this->actionpoints_.size(); ++i) 65 68 { … … 85 88 void DivisionController::action() 86 89 { 90 if (!this || !this->getControllableEntity()) 91 return; 87 92 CommonController::action(); 93 88 94 } 89 95 void DivisionController::stayNearProtect()
Note: See TracChangeset
for help on using the changeset viewer.