Changeset 11811 for code/branches/cegui0.8_ogre1.9/src/orxonox
- Timestamp:
- Feb 24, 2018, 6:09:45 PM (7 years ago)
- Location:
- code/branches/cegui0.8_ogre1.9/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cegui0.8_ogre1.9/src/orxonox/controllers/AIController.cc
r11071 r11811 227 227 this->moveToTargetPosition(); 228 228 229 229 this->doFire(); 230 230 } 231 231 } -
code/branches/cegui0.8_ogre1.9/src/orxonox/overlays/InGameConsole.cc
r11795 r11811 72 72 { 73 73 const int LINES = 30; 74 const float CHAR_WIDTH = 8.0f; // fix this please - determine the char-width dynamically74 const float HARDCODED_CHAR_WIDTH = 8.0f; // fix this please - determine the char-width dynamically 75 75 76 76 SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole); … … 448 448 449 449 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)); 451 451 else 452 452 this->maxCharsPerLine_ = 10;
Note: See TracChangeset
for help on using the changeset viewer.