parent
ba1bbcfb37
commit
e26882b446
|
@ -235,7 +235,11 @@ BOOL MultiPlayerLeave(UDWORD playerIndex)
|
|||
|
||||
ssprintf(buf, _("%s has Left the Game"), getPlayerName(playerIndex));
|
||||
|
||||
if (NetPlay.isHost)
|
||||
if (ingame.localJoiningInProgress)
|
||||
{
|
||||
clearPlayer(playerIndex, false);
|
||||
}
|
||||
else if (NetPlay.isHost) // If hosting, and game has started (not in pre-game lobby screen, that is).
|
||||
{
|
||||
sendPlayerLeft(playerIndex);
|
||||
}
|
||||
|
|
|
@ -846,6 +846,7 @@ BOOL recvMessage(void)
|
|||
break;
|
||||
case GAME_PLAYER_LEFT:
|
||||
recvPlayerLeft(queue);
|
||||
break;
|
||||
default:
|
||||
processedMessage2 = false;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue