Fix writing corrupt standings that break replay hut

This commit is contained in:
fickleheart 2019-04-14 17:08:04 -05:00
parent 5ec6517a54
commit b1001d1808
2 changed files with 4 additions and 1 deletions

View file

@ -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?

View file

@ -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],