frontport r8671
"Reset flags for new people joining." git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8736 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
119ff9467f
commit
d26716553b
|
@ -1422,6 +1422,9 @@ void NET_InitPlayers()
|
|||
NetPlay.players[i].ready = false;
|
||||
NetPlay.players[i].versionCheckTime = 0xffffffff;
|
||||
NetPlay.players[i].playerVersionFlag = false;
|
||||
NetPlay.players[i].needFile = false;
|
||||
NetPlay.players[i].wzFile.isCancelled = false;
|
||||
NetPlay.players[i].wzFile.isSending = false;
|
||||
}
|
||||
NetPlay.hostPlayer = NET_HOST_ONLY; // right now, host starts always at index zero
|
||||
NetPlay.playercount = 0;
|
||||
|
@ -3227,6 +3230,10 @@ static void NETallowJoining(void)
|
|||
NETbeginEncode(NET_REQUEST_PASSWORD, index);
|
||||
NETend();
|
||||
}
|
||||
// reset flags for new players
|
||||
NetPlay.players[index].wzFile.isCancelled = false;
|
||||
NetPlay.players[index].wzFile.isSending = false;
|
||||
NetPlay.players[index].needFile = false;
|
||||
// and now, request version from new person
|
||||
NETbeginEncode(NET_REQUEST_VERSION, index);
|
||||
NETend();
|
||||
|
|
Loading…
Reference in New Issue