Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7984 for code/branches/kicklib


Ignore:
Timestamp:
Feb 27, 2011, 7:44:55 AM (14 years ago)
Author:
rgrieder
Message:

Fixed two msvc warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/src/orxonox/gametypes/LastManStanding.cc

    r7655 r7984  
    222222            else
    223223            {
    224                 float damage=pawn->getMaxHealth()*punishDamageRate*0.5;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined?
     224                float damage=pawn->getMaxHealth()*punishDamageRate*0.5f;//TODO: Factor 0.5 is hard coded. Where is the ratio between MaxHealth actually defined?
    225225                pawn->removeHealth(damage);
    226226                this->timeToAct_[player]=timeRemaining;//reset timer
     
    251251                    if (it->first->getClientID()== CLIENTID_UNKNOWN)
    252252                        continue;
    253                     int output=1+playerDelayTime_[it->first];
     253                    int output=1+(int)playerDelayTime_[it->first];
    254254                    const std::string& message = "Respawn in " +multi_cast<std::string>(output)+ " seconds." ;//Countdown
    255255                    this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
Note: See TracChangeset for help on using the changeset viewer.