Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8234


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

Removed 6 MSVC warnings about conversions.

Location:
code/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/designtools/SkyboxGenerator.cc

    r8232 r8234  
    189189                std::pair<int, int> rotate = this->rotations_[this->faceCounter_];
    190190                if(rotate.first != 0)
    191                     entity->yaw(Degree(rotate.first));
     191                    entity->yaw(Degree((float)rotate.first));
    192192                if(rotate.second != 0)
    193                     entity->pitch(Degree(rotate.second));
     193                    entity->pitch(Degree((float)rotate.second));
    194194               
    195195                COUT(4) << "Created face number " << this->faceCounter_ << "." << endl;
  • code/trunk/src/orxonox/gametypes/LastManStanding.cc

    r7655 r8234  
    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());
  • 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.