Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2012, 3:58:03 PM (12 years ago)
Author:
purgham
Message:

first working Version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Racingbot/src/modules/gametypes/RaceCheckPoint.cc

    r9412 r9432  
    108108
    109109        if (checkpoints.x > -1)
    110         this->nextCheckpoints_.insert(static_cast<int>(checkpoints.x + 0.5));
     110        this->nextCheckpoints_.insert(static_cast<int>(checkpoints.x + 0.5)); // the red number has the type double and for the cast (to int) is added 0.5 so that the cast works correctly
    111111        if (checkpoints.y > -1)
    112112        this->nextCheckpoints_.insert(static_cast<int>(checkpoints.y + 0.5));
Note: See TracChangeset for help on using the changeset viewer.