Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2011, 5:10:26 PM (13 years ago)
Author:
rgrieder
Message:

Removed 6 MSVC warnings about conversions.

File:
1 edited

Legend:

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

    r8212 r8234  
    198198                    if (it->first->getClientID()== CLIENTID_UNKNOWN)
    199199                        continue;
    200                     int output = 1 + playerDelayTime_[it->first];
     200                    int output = 1 + (int)playerDelayTime_[it->first];
    201201                    const std::string& message = "Respawn in " +multi_cast<std::string>(output)+ " seconds." ;//Countdown
    202202                    this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
     
    294294            else
    295295            {
    296                 float damage = pawn->getMaxHealth()*punishDamageRate*0.5;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined?
     296                float damage = pawn->getMaxHealth()*punishDamageRate*0.5f;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined?
    297297                pawn->removeHealth(damage);
    298298                this->timeToAct_[player] = timeRemaining;//reset timer
Note: See TracChangeset for help on using the changeset viewer.