Changeset 1538 for code/trunk/src/orxonox/console/InGameConsole.cc
- Timestamp:
- Jun 4, 2008, 10:44:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/console/InGameConsole.cc
r1535 r1538 299 299 300 300 this->linesChanged(); 301 this->cursorChanged(); 301 302 } 302 303 … … 372 373 Shell::getInstance().registerListener(this); 373 374 this->linesChanged(); 375 this->cursorChanged(); 374 376 375 377 this->consoleOverlay_->show(); … … 460 462 } 461 463 462 void InGameConsole::setCursorPosition( int pos)464 void InGameConsole::setCursorPosition(unsigned int pos) 463 465 { 464 466 static std::string char1 = "bdefgilpqtzCEGIJKNOPQT5[}äü"; … … 471 473 472 474 float width = 0; 473 for ( int i = 0; i < pos; ++i)475 for (unsigned int i = 0; i < pos && i < displayedText_.size(); ++i) 474 476 { 475 477 if (char1.find(displayedText_[i]) != std::string::npos)
Note: See TracChangeset
for help on using the changeset viewer.