Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2011, 2:43:04 PM (13 years ago)
Author:
willis
Message:

fixed merging some merging bugs and some other bugs…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2011/src/orxonox/controllers/FormationController.cc

    r8996 r9005  
    383383    void FormationController::searchNewMaster()
    384384    {
    385 
     385        if (this->state_==SLAVE)
     386           return;
    386387        if (!this->getControllableEntity())
    387388            return;
     
    588589    void FormationController::takeLeadOfFormation()
    589590    {
    590         if (!this->getControllableEntity())
     591        if (!this->getControllableEntity() || this->state_==MASTER)
    591592            return;
    592593
    593         if (this->state_==MASTER) return;
    594594        //search new Master, then take lead
    595         if (this->state_==FREE)
     595        if (this->state_==FREE && this->myMaster_==0)
    596596        {
    597597          searchNewMaster();
Note: See TracChangeset for help on using the changeset viewer.