Changeset 3301 for code/trunk/src/orxonox/gamestates
- Timestamp:
- Jul 18, 2009, 4:03:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSDedicated.cc
r3300 r3301 193 193 // boost::recursive_mutex::scoped_lock(this->inputLineMutex_); 194 194 std::cout << endl << CommandExecutor::hint( std::string((const char*)this->commandLine_,inputIterator_) ) << endl; 195 strncpy( (char*)this->commandLine_, CommandExecutor::complete( std::string((const char*)this->commandLine_,inputIterator_) ).c_str(), MAX_COMMAND_LENGTH);195 strncpy(reinterpret_cast<char*>(this->commandLine_), CommandExecutor::complete( std::string(reinterpret_cast<char*>(this->commandLine_),inputIterator_) ).c_str(), MAX_COMMAND_LENGTH); 196 196 inputIterator_ = strlen((const char*)this->commandLine_); 197 197 break; … … 275 275 void GSDedicated::insertCharacter( unsigned int position, char c ) 276 276 { 277 // std::cout << endl << (unsigned int)c<< endl;277 // std::cout << endl << static_cast<unsigned int>(c) << endl; 278 278 // check that we do not exceed MAX_COMMAND_LENGTH 279 279 if( inputIterator_+1 < MAX_COMMAND_LENGTH )
Note: See TracChangeset
for help on using the changeset viewer.