Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2015, 11:29:45 PM (9 years ago)
Author:
landauf
Message:

fixed build and warnings with MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/jump/JumpFigure.cc

    r10215 r10218  
    184184        // Move through the left and right screen boundaries
    185185        Vector3 position = getPosition();
    186         if (position.x < -fieldWidth_*1.1)
    187         {
    188             position.x = fieldWidth_*1.1;
    189         }
    190         else if (position.x > fieldWidth_*1.1)
    191         {
    192             position.x = -fieldWidth_*1.1;
     186        if (position.x < -fieldWidth_*1.1f)
     187        {
     188            position.x = fieldWidth_*1.1f;
     189        }
     190        else if (position.x > fieldWidth_*1.1f)
     191        {
     192            position.x = -fieldWidth_*1.1f;
    193193        }
    194194        setPosition(position);
     
    207207        {
    208208            Vector3 velocity = getVelocity();
    209             velocity.z = (bootsActive_ ? 1.2*jumpSpeed_ : jumpSpeed_);
     209            velocity.z = (bootsActive_ ? 1.2f*jumpSpeed_ : jumpSpeed_);
    210210            setVelocity(velocity);
    211211
     
    221221        {
    222222            Vector3 velocity = getVelocity();
    223             velocity.z = 1.2*jumpSpeed_;
     223            velocity.z = 1.2f*jumpSpeed_;
    224224            setVelocity(velocity);
    225225        }
Note: See TracChangeset for help on using the changeset viewer.