Changeset 6935 for code/branches/presentation3/src/orxonox
- Timestamp:
- May 20, 2010, 2:50:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/gametypes/TeamDeathmatch.cc
r6920 r6935 138 138 139 139 SpawnPoint* fallbackSpawnPoint = NULL; 140 141 140 if (teamSpawnPoints.size() > 0) 142 141 { 143 142 unsigned int randomspawn = static_cast<unsigned int>(rnd(static_cast<float>(teamSpawnPoints.size()))); 144 143 unsigned int index = 0; 144 // Get random fallback spawnpoint in case there is no active SpawnPoint. 145 145 for (std::set<SpawnPoint*>::const_iterator it = teamSpawnPoints.begin(); it != teamSpawnPoints.end(); ++it) 146 146 { … … 154 154 } 155 155 156 // Remove all inactive SpawnPoints from the list. 156 157 for (std::set<SpawnPoint*>::const_iterator it = teamSpawnPoints.begin(); it != teamSpawnPoints.end(); ) 157 158 { 158 if 159 { 160 COUT(1) << "MUP" << std::endl;159 if(!(*it)->isActive()) 160 { 161 COUT(1) << (*it)->getName() << " is inactive." << std::endl; 161 162 teamSpawnPoints.erase(it++); 162 163 continue; 163 164 } 165 COUT(1) << (*it)->getName() << " is active." << std::endl; 164 166 165 167 ++it; 166 168 } 169 170 COUT(1) << "MUP " << teamSpawnPoints.size() << std::endl; 167 171 168 172 randomspawn = static_cast<unsigned int>(rnd(static_cast<float>(teamSpawnPoints.size())));
Note: See TracChangeset
for help on using the changeset viewer.