mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Update level continues when restoring GP save
This commit is contained in:
parent
f418b5841a
commit
e2122fa351
1 changed files with 6 additions and 0 deletions
|
|
@ -6431,6 +6431,9 @@ static inline void P_ArchiveMisc(savebuffer_t *save)
|
|||
WRITESINT8(save->p, (SINT8)plr->grade);
|
||||
}
|
||||
}
|
||||
|
||||
const gpRank_level_t *lvl = &rank->levels[rank->numLevels];
|
||||
WRITEUINT16(save->p, lvl->continues + 1);
|
||||
}
|
||||
|
||||
// Marathon information
|
||||
|
|
@ -6719,6 +6722,9 @@ static boolean P_UnArchiveSPGame(savebuffer_t *save)
|
|||
plr->grade = (gp_rank_e)READSINT8(save->p);
|
||||
}
|
||||
}
|
||||
|
||||
gpRank_level_t *const lvl = &rank->levels[rank->numLevels];
|
||||
lvl->continues = READUINT16(save->p);
|
||||
}
|
||||
|
||||
// Marathon information
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue