hedgewars/hwengine.pas
changeset 11507 382f91348d91
parent 11506 2d72489cc5b6
child 11512 bd9a2f1b0080
--- 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