- Timestamp:
- Dec 14, 2015, 11:31:30 AM (8 years ago)
- Location:
- code/branches/presentationHS15
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15
- Property svn:mergeinfo changed
/code/branches/campaignHS15 merged: 10968-10969,10971
- Property svn:mergeinfo changed
-
code/branches/presentationHS15/src/orxonox/controllers/WingmanController.cc
r10970 r10974 99 99 else if (this->myLeader_) 100 100 { 101 if (this->myLeader_->bKeepFormation_ || !(this->myLeader_->getAction() == Action::FIGHT || this->myLeader_->getAction() == Action::FIGHTALL 101 if (this->myLeader_->bKeepFormation_ || !(this->myLeader_->getAction() == Action::FIGHT 102 || this->myLeader_->getAction() == Action::FIGHTALL 102 103 || this->myLeader_->getAction() == Action::ATTACK)) 103 104 { … … 148 149 else 149 150 { 150 151 151 switch (this->formationMode_){ 152 152 case FormationMode::WALL: … … 215 215 { 216 216 //----Racing conditions---- 217 /*TODO: racing condition check is wrong and redundant, as there is no multithreading here, ticks get called one after another, 218 so it can be simplified to a check of whether leader got a wingman*/ 217 219 if (closestLeader->setWingman(orxonox_cast<ActionpointController*>(this))) 218 220 { 219 if (closestLeader->getIdentifier()->getName() == "SectionController")220 {221 this->actionTime_ = 1.6f;222 }223 else224 {225 this->actionTime_ = 2.0f;226 }227 221 return closestLeader; 228 222 }
Note: See TracChangeset
for help on using the changeset viewer.