Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2009, 10:46:06 PM (16 years ago)
Author:
rgrieder
Message:
  • Using class { static const float foo = 3.2; }; is non standard C++, only integral types are allowed to be defined this way. —> Exported symbol to the source file
  • Removed two unsigned/signed comparison warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc

    r2904 r2926  
    7171
    7272        for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it)
    73             if (it->second < this->teams_ && it->second >= 0)
     73            if (it->second < (int)this->teams_ && it->second >= 0)
    7474                playersperteam[it->second]++;
    7575
     
    122122        // Only use spawnpoints of the own team (or non-team-spawnpoints)
    123123        std::set<SpawnPoint*> teamSpawnPoints = this->spawnpoints_;
    124         for (std::set<SpawnPoint*>::const_iterator it = teamSpawnPoints.begin(); it != teamSpawnPoints.end(); )
     124        for (std::set<SpawnPoint*>::iterator it = teamSpawnPoints.begin(); it != teamSpawnPoints.end(); )
    125125        {
    126126            if ((*it)->isA(Class(TeamSpawnPoint)))
     
    160160        // Set the team colour
    161161        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 < this->teamcolours_.size())
     162        if (it_player != this->teamnumbers_.end() && it_player->second >= 0 && it_player->second < (int)this->teamcolours_.size())
    163163        {
    164164            if (pawn)
Note: See TracChangeset for help on using the changeset viewer.