- Timestamp:
- Dec 7, 2015, 9:41:38 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/WingmanController.cc
r10923 r10925 120 120 { 121 121 ActionpointController* newLeader = (findNewLeader()); 122 if (!this || !this->getControllableEntity()) 123 return; 124 122 125 this->myLeader_ = newLeader; 123 126 if (this->myLeader_) … … 147 150 else if (!this->myLeader_->bKeepFormation_) 148 151 { 152 if (!this || !this->getControllableEntity()) 153 return; 154 149 155 if (!this->hasTarget()) 150 156 { … … 175 181 Vector3 WingmanController::getFormationPosition () 176 182 { 183 184 177 185 this->setFormationMode( this->myLeader_->getFormationMode() ); 178 186 Vector3* targetRelativePosition;
Note: See TracChangeset
for help on using the changeset viewer.