Changeset 2020 for code/branches/objecthierarchy/src/orxonox
- Timestamp:
- Oct 27, 2008, 11:44:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/gametypes/Gametype.cc
r2019 r2020 143 143 unsigned int randomspawn = (unsigned int)rnd(this->spawnpoints_.size()); 144 144 unsigned int index = 0; 145 for (std::set<SpawnPoint*>:: iterator it = this->spawnpoints_.begin(); it != this->spawnpoints_.end(); ++it)145 for (std::set<SpawnPoint*>::const_iterator it = this->spawnpoints_.begin(); it != this->spawnpoints_.end(); ++it) 146 146 { 147 147 if (index == randomspawn) … … 156 156 void Gametype::assignDefaultPawnsIfNeeded() const 157 157 { 158 for (std::set<PlayerInfo*>:: iterator it = this->players_.begin(); it != this->players_.end(); ++it)158 for (std::set<PlayerInfo*>::const_iterator it = this->players_.begin(); it != this->players_.end(); ++it) 159 159 { 160 160 if (!(*it)->getControllableEntity() && (!(*it)->isReadyToSpawn() || !this->bStarted_))
Note: See TracChangeset
for help on using the changeset viewer.