Changeset 6935 for code/branches/presentation3/src
- Timestamp:
- May 20, 2010, 2:50:59 PM (15 years ago)
- Location:
- code/branches/presentation3/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/objects/triggers/DistanceTrigger.cc
r6906 r6935 155 155 } 156 156 } 157 157 158 return false; 158 159 } -
code/branches/presentation3/src/modules/questsystem/QuestEffectBeacon.cc
r6906 r6935 134 134 if(pawn == NULL) 135 135 { 136 COUT(2) << "The QuestEffectBeacon was triggered by an entity other than a Pawn. " << std::endl;136 COUT(2) << "The QuestEffectBeacon was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << std::endl; 137 137 return false; 138 138 } -
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.