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-861f7616d084
master
Buginator 2010-02-24 05:11:54 +00:00 committed by Git SVN Gateway
parent 3433d5fb58
commit ae3e6e80a7
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}