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/modules/objects/SpaceBoundaries.cc

    r11071 r11083  
    221221                    }
    222222                }
    223                 if(/* humanItem &&*/ abs(this->maxDistance_ - distance) < this->showDistance_ )
     223                if(/* humanItem &&*/ std::abs(this->maxDistance_ - distance) < this->showDistance_ )
    224224                {
    225225                    this->displayBoundaries(currentPawn, 1.0f - fabs(this->maxDistance_ - distance) / this->showDistance_); // Show the boundary
Note: See TracChangeset for help on using the changeset viewer.