Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11811


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

fixed some warnings with gcc 7

Location:
code/branches/cegui0.8_ogre1.9/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9/src/libraries/network/TrafficControl.cc

    r11071 r11811  
    140140    if ( !this->bActive_ )
    141141      return;
    142       std::list<obj>::iterator itvec;  // iterator to iterate through the acked objects
     142    std::list<obj>::iterator itvec;  // iterator to iterate through the acked objects
    143143
    144144    //assertions to make sure the maps already exist
  • code/branches/cegui0.8_ogre1.9/src/orxonox/controllers/AIController.cc

    r11071 r11811  
    227227                    this->moveToTargetPosition();
    228228
    229                     this->doFire();
     229                this->doFire();
    230230            }
    231231        }
  • 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.