From ee82c62afc72949b3884b9fdcadd16ed408ac88f Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 30 Sep 2014 04:07:41 +0000 Subject: [PATCH] Allow loading the header from savegames with a different version. This is needed to allow starting a new game on the episode/level/skill saved in an incompatible savegame. git-svn-id: https://svn.eduke32.com/eduke32@4610 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/savegame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/savegame.c b/polymer/eduke32/source/savegame.c index 9f1ca11e7..dbab83b84 100644 --- a/polymer/eduke32/source/savegame.c +++ b/polymer/eduke32/source/savegame.c @@ -242,7 +242,7 @@ int32_t G_LoadPlayer(int32_t spot) ready2send = 0; i = sv_loadheader(fil, spot, &h); - if (i && i != 2 || h.numplayers!=ud.multimode) + if ((i && i != 2) || h.numplayers != ud.multimode) { if (i == 2 || i == 3) P_DoQuote(QUOTE_SAVE_BAD_VERSION, g_player[myconnectindex].ps);