Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2015, 8:39:46 AM (8 years ago)
Author:
gania
Message:

fixed a bug and got rid of unnecessary Rank enumeration, used getIdentifire instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/SectionController.cc

    r10866 r10869  
    4747        this->myWingman_ = 0;
    4848        this->myDivisionLeader_ = 0;
    49         this->rank_ = Rank::SECTIONLEADER;
    5049        this->bFirstAction_ = true;
    5150        //orxout(internal_error) << this << "Was created" << endl;
     
    285284        {
    286285            //0ptr or not DivisionController?
    287             if (!(it) || !((it)->getRank() == Rank::DIVISIONLEADER) || !(it->getControllableEntity()))
     286            if (!(it) || !((it)->getIdentifier()->getName() == "DivisionController") || !(it->getControllableEntity()))
    288287                continue;
    289288            //same team?
     
    311310        return 0;
    312311    }
    313     bool SectionController::setWingman(ActionpointController* cwingman)
     312    bool SectionController::setWingman(CommonController* cwingman)
    314313    {
    315314        WeakPtr<WingmanController> wingman = orxonox_cast<WingmanController*>(cwingman);
Note: See TracChangeset for help on using the changeset viewer.