mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Got_Mapcmd: Handle the case where netcommunicated roundqueue data with a size less than the client's would be silently ignored.
This commit is contained in:
parent
6711887179
commit
b95c537cdf
1 changed files with 6 additions and 1 deletions
|
|
@ -3121,7 +3121,12 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
|
|||
}
|
||||
|
||||
roundqueue.position = position;
|
||||
while (roundqueue.size < size)
|
||||
if (size < roundqueue.size)
|
||||
{
|
||||
// Bafooliganism afoot - set to zero if the size is zero! ~toast 150523
|
||||
roundqueue.size = size;
|
||||
}
|
||||
else while (roundqueue.size < size)
|
||||
{
|
||||
// We wipe rather than provide full data to prevent bloating the packet,
|
||||
// and because only this data is necessary for sync. ~toast 100423
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue