Show lobby for players if they are kicked during a game.
This commit is contained in:
@@ -1126,9 +1126,15 @@ void mainWindowImpl::initGui(int speed)
|
||||
void mainWindowImpl::showClientDialog()
|
||||
{
|
||||
if (mySession->getGameType() == Session::GAME_TYPE_NETWORK)
|
||||
showNetworkStartDialog();
|
||||
{
|
||||
if (!myStartNetworkGameDialog->isVisible())
|
||||
showNetworkStartDialog();
|
||||
}
|
||||
else if (mySession->getGameType() == Session::GAME_TYPE_INTERNET)
|
||||
showLobbyDialog();
|
||||
{
|
||||
if (!myGameLobbyDialog->isVisible())
|
||||
showLobbyDialog();
|
||||
}
|
||||
}
|
||||
|
||||
void mainWindowImpl::showNetworkStartDialog()
|
||||
|
||||
@@ -407,6 +407,7 @@ AbstractClientStateReceiving::Process(ClientThread &client)
|
||||
NetPacketRemovedFromGame::Data removedData;
|
||||
tmpPacket->ToNetPacketRemovedFromGame()->GetData(removedData);
|
||||
client.ClearPlayerDataList();
|
||||
client.GetCallback().SignalNetClientWaitDialog();
|
||||
client.GetCallback().SignalNetClientRemovedFromGame(removedData.removeReason);
|
||||
client.SetState(ClientStateWaitJoin::Instance());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user