mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 14:12:47 +00:00
Fix writing corrupt standings that break replay hut
This commit is contained in:
parent
5b1c3efb86
commit
7c75397b67
2 changed files with 4 additions and 1 deletions
|
|
@ -7056,6 +7056,9 @@ void G_LoadDemoInfo(menudemo_t *pdemo)
|
|||
pdemo->standings[count].timeorscore = READUINT32(extrainfo_p);
|
||||
|
||||
count++;
|
||||
|
||||
if (count >= MAXPLAYERS)
|
||||
break; //@TODO still cycle through the rest of these if extra demo data is ever used
|
||||
}
|
||||
|
||||
// I think that's everything we need?
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
|
|||
players[i].score += data.match.increase[i];
|
||||
}
|
||||
|
||||
if (demo.recording)
|
||||
if (demo.recording && !rankingsmode)
|
||||
G_WriteStanding(
|
||||
data.match.pos[data.match.numplayers],
|
||||
data.match.name[data.match.numplayers],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue