mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix issue where other player leaving messed it up
This commit is contained in:
parent
3798b8f65b
commit
3c30599910
1 changed files with 1 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ class NetCommands {
|
|||
|
||||
var allReady = true;
|
||||
for (id => client in Net.clientIdMap) {
|
||||
if (client.state != GameplayState.GAME) {
|
||||
if (client.state != GameplayState.GAME && client != conn) {
|
||||
allReady = false;
|
||||
break;
|
||||
}
|
||||
|
|
@ -222,7 +222,6 @@ class NetCommands {
|
|||
MarbleGame.instance.world.allClientsReady();
|
||||
}
|
||||
}
|
||||
Net.clientIdMap.remove(clientId);
|
||||
if (MarbleGame.canvas.content is MultiplayerLevelSelectGui) {
|
||||
cast(MarbleGame.canvas.content, MultiplayerLevelSelectGui).updateLobbyNames();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue