Changeset 2020 for code/branches/objecthierarchy/src
- Timestamp:
- Oct 27, 2008, 11:44:20 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src
- Files:
-
- 3 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_)) -
code/branches/objecthierarchy/src/util/String.cc
r2019 r2020 39 39 #include "Convert.h" 40 40 #include "Math.h" 41 42 std::string BLANKSTRING(""); 41 43 42 44 std::string getUniqueNumberString() -
code/branches/objecthierarchy/src/util/String.h
r2019 r2020 40 40 #include <sstream> 41 41 42 _UtilExport static const std::string BLANKSTRING = "";42 extern _UtilExport std::string BLANKSTRING; 43 43 _UtilExport std::string getUniqueNumberString(); 44 44
Note: See TracChangeset
for help on using the changeset viewer.