Changeset 11071 for code/trunk/src/modules/gametypes/RaceCheckPoint.cc
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (10 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/gametypes/RaceCheckPoint.cc
r9973 r11071 53 53 54 54 this->setRadarObjectColour(ColourValue::Blue); 55 this->setRadarObjectShape(RadarViewable:: Triangle);55 this->setRadarObjectShape(RadarViewable::Shape::Triangle); 56 56 this->setRadarVisibility(false); 57 57 this->settingsChanged(); … … 125 125 } 126 126 } 127 return NULL;127 return nullptr; 128 128 } 129 129 … … 146 146 { 147 147 Vector3 checkpoints(-1,-1,-1); int count=0; 148 for ( std::set<int>::iterator it= nextCheckpoints_.begin();it!=nextCheckpoints_.end(); it++)148 for (int nextCheckpoint : nextCheckpoints_) 149 149 { 150 150 switch (count) 151 151 { 152 case 0: checkpoints.x = static_cast<Ogre::Real>( *it); break;153 case 1: checkpoints.y = static_cast<Ogre::Real>( *it); break;154 case 2: checkpoints.z = static_cast<Ogre::Real>( *it); break;152 case 0: checkpoints.x = static_cast<Ogre::Real>(nextCheckpoint); break; 153 case 1: checkpoints.y = static_cast<Ogre::Real>(nextCheckpoint); break; 154 case 2: checkpoints.z = static_cast<Ogre::Real>(nextCheckpoint); break; 155 155 } 156 156 ++count;
Note: See TracChangeset
for help on using the changeset viewer.