From 04b40ab4767a71f502e172d78d103a790d0f3019 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 27 Sep 2011 19:21:06 +0000 Subject: [PATCH] - bugfix for endless loop on headless server when pressing control-D --- source/glest_game/main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 9460f12d5..887acc4b0 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -3259,6 +3259,8 @@ int glestMain(int argc, char** argv) { #endif { getline(cin, command); + cin.clear(); + printf("server command [%s]\n",command.c_str()); if(command == "quit") { break;