- Timestamp:
- Nov 5, 2012, 3:58:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Racingbot/src/modules/gametypes/RaceCheckPoint.cc
r9412 r9432 108 108 109 109 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 111 111 if (checkpoints.y > -1) 112 112 this->nextCheckpoints_.insert(static_cast<int>(checkpoints.y + 0.5));
Note: See TracChangeset
for help on using the changeset viewer.