Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 21, 2016, 1:59:04 PM (8 years ago)
Author:
muemart
Message:

Fix some clang-tidy warnings.
Also, Serialise.h was doing some C-style casts that ended up being const casts. I moved those const casts as close to the source as possible and changed the loadAndIncrease functions to not do that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/controllers/WingmanController.cc

    r11071 r11083  
    5858    void WingmanController::action()
    5959    {
    60         if (!this || !this->getControllableEntity() || !this->isActive())
     60        if (!this->getControllableEntity() || !this->isActive())
    6161            return;
    6262        //----If no leader, find one----
     
    6464        {
    6565            ActionpointController* newLeader = (findNewLeader());
    66             if (!this || !this->getControllableEntity())
    67                 return;
    6866
    6967            this->myLeader_ = newLeader;
     
    9290            else if (!this->myLeader_->bKeepFormation_)
    9391            {
    94                 if (!this || !this->getControllableEntity())
    95                     return;
    9692
    9793                if (!this->hasTarget())
Note: See TracChangeset for help on using the changeset viewer.