Changeset 3300 for code/trunk/src/orxonox/objects
- Timestamp:
- Jul 17, 2009, 11:53:35 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/objects
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc
r3196 r3300 71 71 72 72 for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it) 73 if (it->second < (int)this->teams_&& it->second >= 0)73 if (it->second < static_cast<int>(this->teams_) && it->second >= 0) 74 74 playersperteam[it->second]++; 75 75 … … 127 127 { 128 128 TeamSpawnPoint* tsp = dynamic_cast<TeamSpawnPoint*>(*it); 129 if (tsp && (int)tsp->getTeamNumber() != desiredTeamNr)129 if (tsp && static_cast<int>(tsp->getTeamNumber()) != desiredTeamNr) 130 130 { 131 131 teamSpawnPoints.erase(it++); … … 160 160 // Set the team colour 161 161 std::map<PlayerInfo*, int>::const_iterator it_player = this->teamnumbers_.find(player); 162 if (it_player != this->teamnumbers_.end() && it_player->second >= 0 && it_player->second < (int)this->teamcolours_.size())162 if (it_player != this->teamnumbers_.end() && it_player->second >= 0 && it_player->second < static_cast<int>(this->teamcolours_.size())) 163 163 { 164 164 if (pawn) -
code/trunk/src/orxonox/objects/gametypes/UnderAttack.cc
r3280 r3300 51 51 52 52 this->setConfigValues(); 53 this->timesequence_ = (int) this->gameTime_;53 this->timesequence_ = static_cast<this->gameTime_); 54 54 } 55 55 -
code/trunk/src/orxonox/objects/infos/Bot.cc
r3196 r3300 52 52 this->setConfigValues(); 53 53 54 this->setName(this->names_[ (size_t)(rnd() * this->names_.size())]);54 this->setName(this->names_[static_cast<size_t>(rnd() * this->names_.size())]); 55 55 56 56 if (this->getGametype()) -
code/trunk/src/orxonox/objects/pickup/PickupCollection.cc
r3280 r3300 86 86 bool PickupCollection::checkSlot(BaseItem* item) 87 87 { 88 return ( (int)this->items_.count(item->getPickupIdentifier()) < item->getMaxCarryAmount());88 return (static_cast<int>(this->items_.count(item->getPickupIdentifier())) < item->getMaxCarryAmount()); 89 89 } 90 90 /** -
code/trunk/src/orxonox/objects/worldentities/ParticleEmitter.h
r3280 r3300 64 64 protected: 65 65 inline void setLODxml(unsigned int level) 66 { this->LOD_ = (LODParticle::Value)level; this->LODchanged(); }66 { this->LOD_ = static_cast<LODParticle::Value>(level); this->LODchanged(); } 67 67 inline unsigned int getLODxml() const 68 68 { return (unsigned int)this->LOD_; } -
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc
r3280 r3300 281 281 else 282 282 { 283 callMemberNetworkFunction(Pawn, doFire, this->getObjectID(), 0, ((uint8_t)firemode));283 callMemberNetworkFunction(Pawn, doFire, this->getObjectID(), 0, firemode); 284 284 if (this->weaponSystem_) 285 285 this->weaponSystem_->fire(firemode);
Note: See TracChangeset
for help on using the changeset viewer.