From 9a049f5a0d8850a0a739fadeb3b97d3720185457 Mon Sep 17 00:00:00 2001 From: fickleheart Date: Mon, 8 Apr 2019 00:45:19 -0500 Subject: [PATCH] Support RA time comparisons in new format I don't care enough about supporting old replays, and they're old anyway. Force-overwrite them. :) --- src/g_game.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 6233fb99..6284ea66 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -6772,10 +6772,8 @@ UINT8 G_CmpDemoTime(char *oldname, char *newname) p += 2; // gamemap p += 16; // map md5 flags = READUINT8(p); // demoflags - if (flags & DF_FILELIST) // file list - { - G_SkipDemoExtraFiles(&p); - } + p++; // gametype + G_SkipDemoExtraFiles(&p); aflags = flags & (DF_RECORDATTACK|DF_NIGHTSATTACK); I_Assert(aflags); @@ -6820,7 +6818,10 @@ UINT8 G_CmpDemoTime(char *oldname, char *newname) break; #ifdef DEMO_COMPAT_100 case 0x0001: - I_Error("You need to implement demo compat here, doofus! %s:%d", __FILE__, __LINE__); + // Old replays gotta go :] + CONS_Alert(CONS_NOTICE, M_GetText("File '%s' outdated version. It will be overwritten. Nyeheheh.\n"), oldname); + Z_Free(buffer); + return UINT8_MAX; #endif // too old, cannot support. default: @@ -6838,10 +6839,8 @@ UINT8 G_CmpDemoTime(char *oldname, char *newname) p += 2; // gamemap p += 16; // mapmd5 flags = READUINT8(p); - if (flags & DF_FILELIST) // file list - { - G_SkipDemoExtraFiles(&p); - } + p++; // gametype + G_SkipDemoExtraFiles(&p); if (!(flags & aflags)) { CONS_Alert(CONS_NOTICE, M_GetText("File '%s' not from same game mode. It will be overwritten.\n"), oldname);