Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 24, 2018, 6:09:45 PM (6 years ago)
Author:
landauf
Message:

fixed some warnings with gcc 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9/src/orxonox/overlays/InGameConsole.cc

    r11795 r11811  
    7272{
    7373    const int LINES = 30;
    74     const float CHAR_WIDTH = 8.0f; // fix this please - determine the char-width dynamically
     74    const float HARDCODED_CHAR_WIDTH = 8.0f; // fix this please - determine the char-width dynamically
    7575
    7676    SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole);
     
    448448
    449449        if (LINES > 0)
    450             this->maxCharsPerLine_ = std::max(10U, static_cast<unsigned int>(static_cast<float>(this->desiredTextWidth_) / CHAR_WIDTH));
     450            this->maxCharsPerLine_ = std::max(10U, static_cast<unsigned int>(static_cast<float>(this->desiredTextWidth_) / HARDCODED_CHAR_WIDTH));
    451451        else
    452452            this->maxCharsPerLine_ = 10;
Note: See TracChangeset for help on using the changeset viewer.