Make gamedata transfer for increased max emblem count

Increments gamedata version
This commit is contained in:
toaster 2024-01-05 20:49:31 +00:00
parent 2c8e342d4b
commit 1b2cad90e7

View file

@ -4563,7 +4563,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 9 // Change every format update #define GD_VERSIONMINOR 10 // 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
@ -4769,6 +4769,10 @@ void G_LoadGameData(void)
unlockreadcount = conditionreadcount = UINT8_MAX; unlockreadcount = conditionreadcount = UINT8_MAX;
unlockreadsize = sizeof(UINT8); unlockreadsize = sizeof(UINT8);
} }
else if (versionMinor < 10)
{
emblemreadcount = 1024*2;
}
// To save space, use one bit per collected/achieved/unlocked flag // To save space, use one bit per collected/achieved/unlocked flag
for (i = 0; i < emblemreadcount;) for (i = 0; i < emblemreadcount;)