- Timestamp:
- Nov 23, 2015, 3:50:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/WingmanController.cc
r10834 r10838 135 135 CommonController* closestLeader = 0; 136 136 float minDistance = std::numeric_limits<float>::infinity(); 137 137 Gametype* gt = this->getGametype(); 138 138 for (ObjectList<CommonController>::iterator it = ObjectList<CommonController>::begin(); it; ++it) 139 139 { … … 145 145 146 146 //----same team?---- 147 if ( !CommonController::sameTeam (this->getControllableEntity(), (it)->getControllableEntity() ) )147 if ( !CommonController::sameTeam (this->getControllableEntity(), (it)->getControllableEntity(), gt) ) 148 148 continue; 149 149
Note: See TracChangeset
for help on using the changeset viewer.