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