- Timestamp:
 - Nov 27, 2015, 8:39:46 AM (10 years ago)
 - File:
 - 
          
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/campaignHS15/src/orxonox/controllers/SectionController.cc
r10866 r10869 47 47 this->myWingman_ = 0; 48 48 this->myDivisionLeader_ = 0; 49 this->rank_ = Rank::SECTIONLEADER;50 49 this->bFirstAction_ = true; 51 50 //orxout(internal_error) << this << "Was created" << endl; … … 285 284 { 286 285 //0ptr or not DivisionController? 287 if (!(it) || !((it)->get Rank() == Rank::DIVISIONLEADER) || !(it->getControllableEntity()))286 if (!(it) || !((it)->getIdentifier()->getName() == "DivisionController") || !(it->getControllableEntity())) 288 287 continue; 289 288 //same team? … … 311 310 return 0; 312 311 } 313 bool SectionController::setWingman( ActionpointController* cwingman)312 bool SectionController::setWingman(CommonController* cwingman) 314 313 { 315 314 WeakPtr<WingmanController> wingman = orxonox_cast<WingmanController*>(cwingman);  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






