Cosmetic change: if no players are connected etc. keep game start timeout on max. DEVELOPMENT
authorDaniel Giritzer <giri@nwrk.biz>
Sun, 30 Dec 2018 00:32:36 +0000 (01:32 +0100)
committerDaniel Giritzer <giri@nwrk.biz>
Sun, 30 Dec 2018 00:32:36 +0000 (01:32 +0100)
src/manager.cpp

index f9678a1..fe1b1b8 100644 (file)
@@ -181,6 +181,7 @@ void Manager::MainLoop()
                        // If any clients are connected, send keep-alive-packet
                        else if (mRegisteredClients.size() >= 1)
                        {
+                               sendPacket.timeout = PRE_POST_GAME_TIMEOUT_SEC;
                                if (timeoutStart)
                                {
                                        cout << "Aborting game start, not enough players..." << endl;
@@ -209,6 +210,7 @@ void Manager::MainLoop()
                        }
                        else
                        {
+                               sendPacket.timeout = PRE_POST_GAME_TIMEOUT_SEC;
                                if (timeoutStart)
                                {
                                        cout << "Aborting game start, not enough players..." << endl;