Fix chatting in editor lobby

qteditor
Sven Eberhardt 2016-08-06 20:22:33 -04:00
parent 1c90f9b2da
commit 20eaaa97b3
1 changed files with 4 additions and 2 deletions

View File

@ -76,9 +76,11 @@ bool C4Console::In(const char *szText)
return true;
}
// begins with '#'? then it's a message. Route via ProcessInput to allow #/sound
if (*szText == '#')
// Also, in the lobby, everything written here is still a message
bool is_chat_command = (*szText == '#');
if (is_chat_command || (::Network.isEnabled() && !::Network.Status.isPastLobby()))
{
::MessageInput.ProcessInput(szText + 1);
::MessageInput.ProcessInput(szText + is_chat_command);
return true;
}
// editing enabled?