Skip to content
Permalink
Browse files
holding down return crashed the chat-function
  • Loading branch information
titiger committed Jun 14, 2015
1 parent d323d58 commit edf9922dcaab4da50d623af9e374aa55928f3328
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/glest_game/menu/menu_state_masterserver.cpp
@@ -1204,7 +1204,7 @@ void MenuStateMasterserver::keyDown(SDL_KeyboardEvent key) {
//printf("keyDown key [%d] chatManager.getText() [%s]\n",key,chatManager.getText().c_str());
MutexSafeWrapper safeMutexIRCPtr(mutexIRCClient,string(extractFileFromDirectoryPath(__FILE__).c_str()) + "_" + intToStr(__LINE__));
//if (key == vkReturn && ircClient != NULL) {
if(isKeyPressed(SDLK_RETURN,key) == true && ircClient != NULL) {
if(isKeyPressed(SDLK_RETURN,key,false) == true && ircClient != NULL) {
ircClient->SendIRCCmdMessage(IRC_CHANNEL, chatManager.getText());
}
}

0 comments on commit edf9922

Please sign in to comment.