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()
|
void mainWindowImpl::showClientDialog()
|
||||||
{
|
{
|
||||||
if (mySession->getGameType() == Session::GAME_TYPE_NETWORK)
|
if (mySession->getGameType() == Session::GAME_TYPE_NETWORK)
|
||||||
|
{
|
||||||
|
if (!myStartNetworkGameDialog->isVisible())
|
||||||
showNetworkStartDialog();
|
showNetworkStartDialog();
|
||||||
|
}
|
||||||
else if (mySession->getGameType() == Session::GAME_TYPE_INTERNET)
|
else if (mySession->getGameType() == Session::GAME_TYPE_INTERNET)
|
||||||
|
{
|
||||||
|
if (!myGameLobbyDialog->isVisible())
|
||||||
showLobbyDialog();
|
showLobbyDialog();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainWindowImpl::showNetworkStartDialog()
|
void mainWindowImpl::showNetworkStartDialog()
|
||||||
|
|||||||
@@ -407,6 +407,7 @@ AbstractClientStateReceiving::Process(ClientThread &client)
|
|||||||
NetPacketRemovedFromGame::Data removedData;
|
NetPacketRemovedFromGame::Data removedData;
|
||||||
tmpPacket->ToNetPacketRemovedFromGame()->GetData(removedData);
|
tmpPacket->ToNetPacketRemovedFromGame()->GetData(removedData);
|
||||||
client.ClearPlayerDataList();
|
client.ClearPlayerDataList();
|
||||||
|
client.GetCallback().SignalNetClientWaitDialog();
|
||||||
client.GetCallback().SignalNetClientRemovedFromGame(removedData.removeReason);
|
client.GetCallback().SignalNetClientRemovedFromGame(removedData.removeReason);
|
||||||
client.SetState(ClientStateWaitJoin::Instance());
|
client.SetState(ClientStateWaitJoin::Instance());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user