broadcast all player's stats.
This should fix the issue where, on joins, people would sometimes see different medals (pacifier) instead of what the remote player actually has. (2.3, r9991 & r9993) git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10000 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
3433d5fb58
commit
ae3e6e80a7
|
@ -280,6 +280,18 @@ BOOL MultiPlayerJoin(UDWORD playerIndex)
|
|||
{
|
||||
kickPlayer(playerIndex, "the game is already full.", ERROR_FULL);
|
||||
}
|
||||
// send everyone's stats to the new guy
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < MAX_PLAYERS; i++)
|
||||
{
|
||||
if (NetPlay.players[i].allocated)
|
||||
{
|
||||
setMultiStats(i, getMultiStats(i, false), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue