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/gametypes/SpaceRaceController.cc

    r11071 r11083  
    397397    bool SpaceRaceController::vergleicheQuader(const Vector3& pointToPoint, const Vector3& groesse)
    398398    {
    399         if(abs(pointToPoint.x) < groesse.x)
     399        if(std::abs(pointToPoint.x) < groesse.x)
    400400            return true;
    401         if(abs(pointToPoint.y) < groesse.y)
     401        if(std::abs(pointToPoint.y) < groesse.y)
    402402            return true;
    403         if(abs(pointToPoint.z) < groesse.z)
     403        if(std::abs(pointToPoint.z) < groesse.z)
    404404            return true;
    405405        return false;
Note: See TracChangeset for help on using the changeset viewer.