On reflection, whether a map is visited should be cleared at the same time as its time attack record data, not seperately.

This commit is contained in:
toaster 2023-05-24 16:58:45 +01:00
parent 4c34d04f8a
commit 4682f03f91
3 changed files with 3 additions and 9 deletions

View file

@ -452,8 +452,7 @@ void G_ClearRecords(void)
for (i = 0; i < nummapheaders; ++i)
{
mapheaderinfo[i]->records.time = 0;
mapheaderinfo[i]->records.lap = 0;
memset(&mapheaderinfo[i]->records, 0, sizeof(recorddata_t));
}
for (cup = kartcupheaders; cup; cup = cup->next)

View file

@ -537,11 +537,6 @@ void M_ClearSecrets(void)
{
INT32 i;
for (i = 0; i < nummapheaders; ++i)
{
mapheaderinfo[i]->records.mapvisited = 0;
}
for (i = 0; i < MAXEMBLEMS; ++i)
gamedata->collected[i] = false;
for (i = 0; i < MAXUNLOCKABLES; ++i)

View file

@ -19,7 +19,7 @@ menuitem_t OPTIONS_DataErase[] =
{IT_STRING | IT_CALL, "Erase Statistics Data", "Be careful! What's deleted is gone forever!",
NULL, {.routine = M_EraseData}, EC_STATISTICS, 0},
{IT_STRING | IT_CALL, "Erase GP & Time Attack Data", "Be careful! What's deleted is gone forever!",
{IT_STRING | IT_CALL, "Erase GP & Record Data", "Be careful! What's deleted is gone forever!",
NULL, {.routine = M_EraseData}, EC_TIMEATTACK, 0},
{IT_STRING | IT_CALL, "\x85\x45rase all Game Data", "Be careful! What's deleted is gone forever!",
@ -89,7 +89,7 @@ void M_EraseData(INT32 choice)
else if (optionsmenu.erasecontext == EC_STATISTICS)
eschoice = M_GetText("Statistics data");
else if (optionsmenu.erasecontext == EC_TIMEATTACK)
eschoice = M_GetText("GP & Time Attack data");
eschoice = M_GetText("GP & Record data");
else if (optionsmenu.erasecontext == EC_ALLGAME)
eschoice = M_GetText("ALL game data");
else