mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-21 14:12:31 +00:00
Merge branch 'fix-replay-standings-online' into 'master'
Fix standings not saving in online replays Closes #1161 See merge request KartKrew/Kart!2114
This commit is contained in:
commit
7088003f05
1 changed files with 3 additions and 2 deletions
|
|
@ -196,6 +196,7 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
|
|||
data.isduel = (numplayersingame <= 2);
|
||||
|
||||
srb2::StandingsJson standings {};
|
||||
bool savestandings = (!rankingsmode && demo.recording);
|
||||
|
||||
for (j = 0; j < numplayersingame; j++)
|
||||
{
|
||||
|
|
@ -239,7 +240,7 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
|
|||
players[i].score += data.increase[i];
|
||||
}
|
||||
|
||||
if (demo.recording)
|
||||
if (savestandings)
|
||||
{
|
||||
srb2::StandingJson standing {};
|
||||
standing.ranking = data.pos[data.numplayers];
|
||||
|
|
@ -285,7 +286,7 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
|
|||
data.numplayers++;
|
||||
}
|
||||
|
||||
if (demo.recording)
|
||||
if (savestandings)
|
||||
{
|
||||
srb2::write_current_demo_end_marker();
|
||||
srb2::write_current_demo_standings(standings);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue