Gamedata: A Course only needs to be beaten to be stored as an unloaded mapheader record, not need FinishNeeded/a Time Attack record

This commit is contained in:
toaster 2024-01-07 13:59:42 +00:00
parent 21e2be41db
commit 4994ceef2c
2 changed files with 1 additions and 9 deletions

View file

@ -151,8 +151,6 @@ struct skinreference_t
#define MV_SPBATTACK (1<<3)
#define MV_MYSTICMELODY (1<<4)
#define MV_MAX (MV_VISITED|MV_BEATEN|MV_ENCORE|MV_SPBATTACK|MV_MYSTICMELODY)
#define MV_FINISHNEEDED (1<<7)
#define MV_PERSISTUNLOADED (MV_SPBATTACK|MV_FINISHNEEDED)
struct recorddata_t
{

View file

@ -4951,8 +4951,7 @@ void G_LoadGameData(void)
M_Memcpy(&mapheaderinfo[mapnum]->records, &dummyrecord, sizeof(recorddata_t));
}
else if (
((dummyrecord.mapvisited & MV_PERSISTUNLOADED) != 0
&& (dummyrecord.mapvisited & MV_BEATEN) != 0)
(dummyrecord.mapvisited & MV_BEATEN)
|| dummyrecord.time != 0
|| dummyrecord.lap != 0
)
@ -5554,11 +5553,6 @@ void G_SaveGameData(void)
UINT8 mapvisitedtemp = (mapheaderinfo[i]->records.mapvisited & MV_MAX);
if ((mapheaderinfo[i]->menuflags & (LF2_FINISHNEEDED|LF2_HIDEINMENU)))
{
mapvisitedtemp |= MV_FINISHNEEDED;
}
WRITEUINT8(save.p, mapvisitedtemp);
WRITEUINT32(save.p, mapheaderinfo[i]->records.time);