Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2015, 8:34:20 AM (8 years ago)
Author:
gania
Message:

check in

File:
1 edited

Legend:

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

    r10915 r10923  
    7474   
    7575        SUPER(SectionController, tick, dt);
    76         if (this->timeOffset_ > 0.8f && this->timeOffset_ <= 1.6f && !this->bActionCalled_)
     76        /*if (this->timeOffset_ > 0.8f && this->timeOffset_ <= 1.6f && !this->bActionCalled_)
    7777        {
    7878            this->action();
     
    8282        {
    8383            this->bActionCalled_ = false;
    84         }
     84        }*/
    8585
    8686    }
     
    9797            this->myDivisionLeader_ = newDivisionLeader;
    9898            //spread copyOrientation called equally among the division
    99             if (this->myDivisionLeader_)
    100             {
    101                 this->actionCounter_ = 5;
    102             }
     99
    103100        }
    104101        //----If have leader----
     
    156153        }
    157154
    158         this->actionCounter_ += this->actionCounter_ < 100000 ? 1 : -this->actionCounter_ ;
    159155    }
    160156
     
    166162        //----If division leader fights, cover him by fighting emenies close to his target----
    167163        Action::Value action = this->myDivisionLeader_->getAction();
    168        
    169         Pawn* target;
     164
    170165        if (action == Action::FIGHT || action == Action::FIGHTALL || action == Action::ATTACK)
    171166        {
     167            Pawn* target;
    172168            //----if he has a target----
    173169            if (this->myDivisionLeader_->hasTarget())
     
    177173                    !( this->hasTarget() && this->getTarget() != this->myDivisionLeader_->getTarget() ) )
    178174                {
    179 
    180175                    bool foundTarget = false;
    181176                    //----new target should be close to division's target----
Note: See TracChangeset for help on using the changeset viewer.