Changeset 10917 for code/branches/cpp11_v2/src/modules/mini4dgame
- Timestamp:
- Dec 2, 2015, 11:32:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/mini4dgame/Mini4Dgame.cc
r10916 r10917 155 155 { 156 156 // first spawn human players to assign always the left bat to the player in singleplayer 157 for ( auto& mapEntry : this->players_)157 for (const auto& mapEntry : this->players_) 158 158 if (mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 159 159 this->spawnPlayer(mapEntry.first); 160 160 // now spawn bots 161 for ( auto& mapEntry : this->players_)161 for (const auto& mapEntry : this->players_) 162 162 if (!mapEntry.first->isHumanPlayer() && (mapEntry.first->isReadyToSpawn() || this->bForceSpawn_)) 163 163 this->spawnPlayer(mapEntry.first);
Note: See TracChangeset
for help on using the changeset viewer.