Changeset 10917 for code/branches/cpp11_v2/src/modules/pong
- Timestamp:
- Dec 2, 2015, 11:32:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/pong/Pong.cc
r10916 r10917 211 211 { 212 212 // first spawn human players to assign always the left bat to the player in singleplayer 213 for ( auto& mapEntry : this->players_)213 for (const auto& mapEntry : this->players_) 214 214 if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 215 215 this->spawnPlayer(mapEntry.first); 216 216 // now spawn bots 217 for ( auto& mapEntry : this->players_)217 for (const auto& mapEntry : this->players_) 218 218 if (!mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 219 219 this->spawnPlayer(mapEntry.first);
Note: See TracChangeset
for help on using the changeset viewer.