diff --git a/releasenotes.md b/releasenotes.md index 6ec9528370..c70582dbba 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -119,6 +119,7 @@ * Skies can now be drawn horizontally linear by enabling the new `r_linearskies` CVAR, which is `off` by default and when vanilla mode is enabled. * The automap is now always updated when the `r_screensize` CVAR is changed while it is open. * A bug is fixed whereby any player movement wouldn’t be canceled when opening the automap and the `am_followmode` CVAR was `off`. +* Savegames that were saved in maps `ExM10` or `ExM11` no longer crash when loaded. ![](https://github.com/bradharding/www.doomretro.com/raw/master/wiki/bigdivider.png) diff --git a/src/p_saveg.c b/src/p_saveg.c index e333c175b8..32f0f28a8c 100644 --- a/src/p_saveg.c +++ b/src/p_saveg.c @@ -1048,12 +1048,12 @@ bool P_ReadSaveGameHeader(char *description) if (gamemode != commercial) { - if (gamemap == 10) + if (gamemap == 10 && W_CheckNumForName("E1M10") < 0) { gamemap = 4; M_StringCopy(speciallumpname, "E1M4B", sizeof(speciallumpname)); } - else if (gamemap == 11) + else if (gamemap == 11 && W_CheckNumForName("E1M11") < 0) { gamemap = 8; M_StringCopy(speciallumpname, "E1M8B", sizeof(speciallumpname));