Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2010, 11:34:20 AM (14 years ago)
Author:
rgrieder
Message:

Removed a ton of msvc warnings revealed with OGRE v1.7 (they removed the warning suppressors in OgrePrerequisites.h).
All of them are conversions from one type to another that might be lossy (mostly double to float, please always use "3.7f" instead of "3.7" as constants when using floats).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/overlays/stats/CreateLines.cc

    r6417 r6502  
    3838    {
    3939        playerNameText_ = new OverlayText(0);
    40         playerNameText_->setTextSize(0.04);
    41         playerNameText_->setColour(ColourValue(0, 0.75, 0.2, 1));
    42         playerNameText_->setPosition(Vector2(0.1, topOffset + 0.01));
     40        playerNameText_->setTextSize(0.04f);
     41        playerNameText_->setColour(ColourValue(0.0f, 0.75f, 0.2f, 1.0f));
     42        playerNameText_->setPosition(Vector2(0.1f, topOffset + 0.01f));
    4343
    4444        scoreText_ = new OverlayText(0);
    45         scoreText_->setTextSize(0.04);
    46         scoreText_->setColour(ColourValue(0, 0.75, 0.2, 1));
    47         scoreText_->setPosition(Vector2(0.6, topOffset + 0.01));
     45        scoreText_->setTextSize(0.04f);
     46        scoreText_->setColour(ColourValue(0.0f, 0.75f, 0.2f, 1.0f));
     47        scoreText_->setPosition(Vector2(0.6f, topOffset + 0.01f));
    4848
    4949        deathsText_ = new OverlayText(0);
    50         deathsText_->setTextSize(0.04);
    51         deathsText_->setColour(ColourValue(0, 0.75, 0.2, 1));
    52         deathsText_->setPosition(Vector2(0.8, topOffset + 0.01));
     50        deathsText_->setTextSize(0.04f);
     51        deathsText_->setColour(ColourValue(0, 0.75f, 0.2f, 1.0f));
     52        deathsText_->setPosition(Vector2(0.8f, topOffset + 0.01f));
    5353
    5454        background_ = new Stats(0);
Note: See TracChangeset for help on using the changeset viewer.