mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
UC_TOTALTUMBLETIME: Forgot to update the gamedata
This commit is contained in:
parent
d3b35099fc
commit
a0df25b5cd
1 changed files with 8 additions and 2 deletions
10
src/g_game.c
10
src/g_game.c
|
|
@ -4426,7 +4426,7 @@ void G_LoadGameSettings(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GD_VERSIONCHECK 0xBA5ED123 // Change every major version, as usual
|
#define GD_VERSIONCHECK 0xBA5ED123 // Change every major version, as usual
|
||||||
#define GD_VERSIONMINOR 8 // Change every format update
|
#define GD_VERSIONMINOR 9 // Change every format update
|
||||||
|
|
||||||
// You can't rearrange these without a special format update
|
// You can't rearrange these without a special format update
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
@ -4542,6 +4542,11 @@ void G_LoadGameData(void)
|
||||||
{
|
{
|
||||||
gamedata->totalrings = READUINT32(save.p);
|
gamedata->totalrings = READUINT32(save.p);
|
||||||
|
|
||||||
|
if (versionMinor >= 9)
|
||||||
|
{
|
||||||
|
gamedata->totaltumbletime = READUINT32(save.p);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < GDGT_MAX; i++)
|
for (i = 0; i < GDGT_MAX; i++)
|
||||||
{
|
{
|
||||||
gamedata->roundsplayed[i] = READUINT32(save.p);
|
gamedata->roundsplayed[i] = READUINT32(save.p);
|
||||||
|
|
@ -5094,7 +5099,7 @@ void G_SaveGameData(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
length = (4+1+1+
|
length = (4+1+1+
|
||||||
4+4+
|
4+4+4+
|
||||||
(4*GDGT_MAX)+
|
(4*GDGT_MAX)+
|
||||||
4+1+2+2+
|
4+1+2+2+
|
||||||
4+
|
4+
|
||||||
|
|
@ -5235,6 +5240,7 @@ void G_SaveGameData(void)
|
||||||
|
|
||||||
WRITEUINT32(save.p, gamedata->totalplaytime); // 4
|
WRITEUINT32(save.p, gamedata->totalplaytime); // 4
|
||||||
WRITEUINT32(save.p, gamedata->totalrings); // 4
|
WRITEUINT32(save.p, gamedata->totalrings); // 4
|
||||||
|
WRITEUINT32(save.p, gamedata->totaltumbletime); // 4
|
||||||
|
|
||||||
for (i = 0; i < GDGT_MAX; i++) // 4 * GDGT_MAX
|
for (i = 0; i < GDGT_MAX; i++) // 4 * GDGT_MAX
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue