Changeset 3196 for code/trunk/src/orxonox/objects/gametypes/Gametype.cc
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/gametypes/Gametype.cc
r3110 r3196 29 29 #include "Gametype.h" 30 30 31 #include <cstdlib> 32 #include <ctime> 33 31 #include "util/Math.h" 34 32 #include "core/CoreIncludes.h" 35 33 #include "core/ConfigValueIncludes.h" 36 #include "core/Template.h"37 34 #include "core/GameMode.h" 38 #include "overlays/OverlayGroup.h" 35 39 36 #include "objects/infos/PlayerInfo.h" 40 37 #include "objects/infos/Bot.h" 38 #include "objects/worldentities/Camera.h" 39 #include "objects/worldentities/ControllableEntity.h" 40 #include "objects/worldentities/SpawnPoint.h" 41 41 #include "objects/worldentities/pawns/Spectator.h" 42 #include "objects/worldentities/ SpawnPoint.h"43 #include "o bjects/worldentities/Camera.h"42 #include "objects/worldentities/pawns/Pawn.h" 43 #include "overlays/OverlayGroup.h" 44 44 45 45 namespace orxonox … … 287 287 if (this->spawnpoints_.size() > 0) 288 288 { 289 unsigned int randomspawn = (unsigned int)rnd(this->spawnpoints_.size());289 unsigned int randomspawn = static_cast<unsigned int>(rnd(static_cast<float>(this->spawnpoints_.size()))); 290 290 unsigned int index = 0; 291 291 for (std::set<SpawnPoint*>::const_iterator it = this->spawnpoints_.begin(); it != this->spawnpoints_.end(); ++it)
Note: See TracChangeset
for help on using the changeset viewer.