From 363849fd24a3d744f0a87ce5b4ff349deb235d48 Mon Sep 17 00:00:00 2001 From: auria Date: Sun, 6 Dec 2009 19:42:50 +0000 Subject: [PATCH] When a player leaves, check if we're ready to start git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4268 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/kart_selection.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/states_screens/kart_selection.cpp b/src/states_screens/kart_selection.cpp index d93b254c1..305a64387 100644 --- a/src/states_screens/kart_selection.cpp +++ b/src/states_screens/kart_selection.cpp @@ -821,6 +821,19 @@ bool KartSelectionScreen::playerQuit(ActivePlayer* player) Widget* fullarea = this->getWidget("playerskarts"); removedWidget->move( removedWidget->x + removedWidget->w/2, fullarea->y + fullarea->h, 0, 0); + // check if all players are ready + bool allPlayersReady = true; + const int amount = m_kart_widgets.size(); + for (int n=0; n