Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 17, 2009, 11:53:35 PM (15 years ago)
Author:
rgrieder
Message:

Found a few more C-Style casts.

File:
1 edited

Legend:

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

    r3196 r3300  
    7171
    7272        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)
    7474                playersperteam[it->second]++;
    7575
     
    127127            {
    128128                TeamSpawnPoint* tsp = dynamic_cast<TeamSpawnPoint*>(*it);
    129                 if (tsp && (int)tsp->getTeamNumber() != desiredTeamNr)
     129                if (tsp && static_cast<int>(tsp->getTeamNumber()) != desiredTeamNr)
    130130                {
    131131                    teamSpawnPoints.erase(it++);
     
    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 < (int)this->teamcolours_.size())
     162        if (it_player != this->teamnumbers_.end() && it_player->second >= 0 && it_player->second < static_cast<int>(this->teamcolours_.size()))
    163163        {
    164164            if (pawn)
Note: See TracChangeset for help on using the changeset viewer.