mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 22:52:50 +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);
|
pdemo->standings[count].timeorscore = READUINT32(extrainfo_p);
|
||||||
|
|
||||||
count++;
|
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?
|
// 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];
|
players[i].score += data.match.increase[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (demo.recording)
|
if (demo.recording && !rankingsmode)
|
||||||
G_WriteStanding(
|
G_WriteStanding(
|
||||||
data.match.pos[data.match.numplayers],
|
data.match.pos[data.match.numplayers],
|
||||||
data.match.name[data.match.numplayers],
|
data.match.name[data.match.numplayers],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue