don't send text input to chat if not in chat-mode.
authorsheepluva
Tue, 12 Jan 2016 22:36:08 +0100
changeset 11507 382f91348d91
parent 11506 2d72489cc5b6
child 11508 09be932506a9
don't send text input to chat if not in chat-mode.
hedgewars/hwengine.pas
--- a/hedgewars/hwengine.pas	Tue Jan 12 22:12:16 2016 +0100
+++ b/hedgewars/hwengine.pas	Tue Jan 12 22:36:08 2016 +0100
@@ -197,7 +197,7 @@
                     ProcessMouseWheel(event.wheel.x, event.wheel.y);
                     end;
 
-                SDL_TEXTINPUT: uChat.TextInput(event.text);
+                SDL_TEXTINPUT: if GameState = gsChat then uChat.TextInput(event.text);
 
                 SDL_WINDOWEVENT:
                     begin