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/Jump.cc

    r10215 r10218  
    595595
    596596        newPlatform = new JumpPlatformStatic(center_->getContext());
    597         addPlatform(newPlatform, center_->getPlatformStaticTemplate(), 0.0, -0.05*sectionLength);
     597        addPlatform(newPlatform, center_->getPlatformStaticTemplate(), 0.0, -0.05f*sectionLength);
    598598
    599599        platformWidth_ = newPlatform->getWidth();
     
    603603        {
    604604            newPlatform = new JumpPlatformStatic(center_->getContext());
    605             addPlatform(newPlatform, center_->getPlatformStaticTemplate(), xPosition, -0.05*sectionLength);
     605            addPlatform(newPlatform, center_->getPlatformStaticTemplate(), xPosition, -0.05f*sectionLength);
    606606            newPlatform = new JumpPlatformStatic(center_->getContext());
    607             addPlatform(newPlatform, center_->getPlatformStaticTemplate(), -xPosition, -0.05*sectionLength);
     607            addPlatform(newPlatform, center_->getPlatformStaticTemplate(), -xPosition, -0.05f*sectionLength);
    608608        }
    609609    }
     
    616616        float sectionEnd = (1 + sectionNumber_) * sectionLength;
    617617
    618         int numI = 6;
    619         int numJ = 4;
     618        const int numI = 6;
     619        const int numJ = 4;
    620620
    621621        enum PlatformType
     
    12631263    {
    12641264        float platformSpeed = center_->getPlatformSpeed();
    1265         return randomPosition(0.5*platformSpeed, 1.5*platformSpeed);
     1265        return randomPosition(0.5f*platformSpeed, 1.5f*platformSpeed);
    12661266    }
    12671267
Note: See TracChangeset for help on using the changeset viewer.