- Timestamp:
- Dec 19, 2011, 2:43:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011/src/orxonox/controllers/FormationController.cc
r8996 r9005 383 383 void FormationController::searchNewMaster() 384 384 { 385 385 if (this->state_==SLAVE) 386 return; 386 387 if (!this->getControllableEntity()) 387 388 return; … … 588 589 void FormationController::takeLeadOfFormation() 589 590 { 590 if (!this->getControllableEntity() )591 if (!this->getControllableEntity() || this->state_==MASTER) 591 592 return; 592 593 593 if (this->state_==MASTER) return;594 594 //search new Master, then take lead 595 if (this->state_==FREE )595 if (this->state_==FREE && this->myMaster_==0) 596 596 { 597 597 searchNewMaster();
Note: See TracChangeset
for help on using the changeset viewer.