Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision dfc81f0e254acefec87ebeabb304291ff1a1485f)
+++ client/Client/main.cpp	(revision cb5a021b16956bebdf7631e74286e9fe349b2480)
@@ -1094,4 +1094,11 @@
                break;
             }
+            case MSG_TYPE_START_GAME:
+            {
+               state = STATE_GAME;
+               wndCurrent = wndGame;
+
+               break;
+            }
             default:
             {
@@ -1398,6 +1405,7 @@
 
 void startGame() {
-   state = STATE_GAME;
-   wndCurrent = wndGame;
+   msgTo.type = MSG_TYPE_LEAVE_GAME;
+
+   msgProcessor.sendMessage(&msgTo, &server);
 }
 
