Changeset 11083 for code/trunk/src/orxonox/controllers/SectionController.cc
- Timestamp:
- Jan 21, 2016, 1:59:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/SectionController.cc
r11071 r11083 59 59 void SectionController::action() 60 60 { 61 if (!this || !this->getControllableEntity() || !this->isActive())61 if (!this->getControllableEntity() || !this->isActive()) 62 62 return; 63 63 … … 66 66 { 67 67 ActionpointController* newDivisionLeader = findNewDivisionLeader(); 68 if (!this || !this->getControllableEntity())69 return;70 68 71 69 this->myDivisionLeader_ = newDivisionLeader; … … 78 76 { 79 77 ActionpointController::action(); 80 if (!this || !this->getControllableEntity())81 return;82 78 if (!(this->parsedActionpoints_.empty() && this->loopActionpoints_.empty())) 83 79 { … … 98 94 else if (!this->myDivisionLeader_->bKeepFormation_) 99 95 { 100 if (!this || !this->getControllableEntity())101 return;102 96 103 97 if (!this->hasTarget()) … … 121 115 if (action == Action::FIGHT || action == Action::FIGHTALL || action == Action::ATTACK) 122 116 { 123 Pawn* target ;117 Pawn* target = nullptr; 124 118 //----if he has a target---- 125 119 if (this->myDivisionLeader_->hasTarget())
Note: See TracChangeset
for help on using the changeset viewer.