mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 22:00:50 +00:00
Fix writing corrupt standings that break replay hut
This commit is contained in:
parent
5ec6517a54
commit
b1001d1808
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…
Reference in a new issue