From ddd9a5a71e55975145638624f4c3553e01e84d57 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 13 Jan 2025 17:42:22 +0100 Subject: [PATCH] no need to strcmp just check for "savemoddata" that bool only ever gets set to true if the savegame has been switched to the modded one and unlike in srb2 this WILL never be reset to false again --- src/g_game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 8ed2f8ec7..a381d82c5 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -4369,7 +4369,7 @@ void G_LoadGameData(void) } // well no clue but dont think it would like reading garbage from vanilla files - K_ReadStats(&save, strcmp(gamedatafilename, "modkartdata.dat") != 0); + K_ReadStats(&save, !savemoddata); for (i = 0; i < PWRLV_NUMTYPES; i++) { @@ -4509,7 +4509,7 @@ void G_SaveGameData(void) // Version test WRITEUINT32(save.p, GD_VERSIONCHECK); // 4 - K_WriteStats(&save, strcmp(gamedatafilename, "modkartdata.dat") != 0); + K_WriteStats(&save, !savemoddata); for (i = 0; i < PWRLV_NUMTYPES; i++) WRITEUINT16(save.p, vspowerlevel[i]);