[Orxonox-commit 252] r2906 - branches/gametypes/src/orxonox/objects/gametypes
landauf at orxonox.net
landauf at orxonox.net
Tue Apr 7 17:43:08 CEST 2009
Author: landauf
Date: 2009-04-07 17:43:08 +0200 (Tue, 07 Apr 2009)
New Revision: 2906
Modified:
branches/gametypes/src/orxonox/objects/gametypes/TeamDeathmatch.cc
Log:
removed 3 warnings
Modified: branches/gametypes/src/orxonox/objects/gametypes/TeamDeathmatch.cc
===================================================================
--- branches/gametypes/src/orxonox/objects/gametypes/TeamDeathmatch.cc 2009-04-06 15:25:22 UTC (rev 2905)
+++ branches/gametypes/src/orxonox/objects/gametypes/TeamDeathmatch.cc 2009-04-07 15:43:08 UTC (rev 2906)
@@ -70,7 +70,7 @@
std::vector<unsigned int> playersperteam(this->teams_, 0);
for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it)
- if (it->second < this->teams_ && it->second >= 0)
+ if (it->second < (int)this->teams_ && it->second >= 0)
playersperteam[it->second]++;
unsigned int minplayers = (unsigned int)-1;
@@ -126,7 +126,7 @@
if ((*it)->isA(Class(TeamSpawnPoint)))
{
TeamSpawnPoint* tsp = dynamic_cast<TeamSpawnPoint*>(*it);
- if (tsp && tsp->getTeamNumber() != desiredTeamNr)
+ if (tsp && (int)tsp->getTeamNumber() != desiredTeamNr)
{
teamSpawnPoints.erase(it++);
continue;
@@ -159,7 +159,7 @@
// Set the team colour
std::map<PlayerInfo*, int>::const_iterator it_player = this->teamnumbers_.find(player);
- if (it_player != this->teamnumbers_.end() && it_player->second >= 0 && it_player->second < this->teamcolours_.size())
+ if (it_player != this->teamnumbers_.end() && it_player->second >= 0 && it_player->second < (int)this->teamcolours_.size())
{
if (pawn)
{
More information about the Orxonox-commit
mailing list