Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2015, 6:19:12 PM (9 years ago)
Author:
gania
Message:

fixed firing direction

File:
1 edited

Legend:

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

    r10762 r10780  
    6363            this->moveToTargetPosition();
    6464        }
    65 
     65        if (this->bShooting_)
     66            doFire();
    6667       
    6768        SUPER(SectionController, tick, dt);
     
    8687        if (this->target_ && this->myWingman_)
    8788            this->myWingman_->setTarget(this->target_);
    88 
    8989        if (canFire())
    90             doFire();
     90           this->bShooting_ = true;
     91        else
     92            this->bShooting_ = false;
    9193               
    9294
Note: See TracChangeset for help on using the changeset viewer.