Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2015, 3:50:59 PM (8 years ago)
Author:
gania
Message:

Gani changed something

File:
1 edited

Legend:

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

    r10834 r10838  
    135135        CommonController* closestLeader = 0;
    136136        float minDistance =  std::numeric_limits<float>::infinity();
    137 
     137        Gametype* gt = this->getGametype();
    138138        for (ObjectList<CommonController>::iterator it = ObjectList<CommonController>::begin(); it; ++it)
    139139        {
     
    145145           
    146146            //----same team?----
    147             if ( !CommonController::sameTeam (this->getControllableEntity(), (it)->getControllableEntity()) )
     147            if ( !CommonController::sameTeam (this->getControllableEntity(), (it)->getControllableEntity(), gt) )
    148148                continue;
    149149           
Note: See TracChangeset for help on using the changeset viewer.