commit 48bda90fc44acb507a663172dc75f872090a8776
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Wed Jan 9 08:09:43 2019 +0100
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Wed Jan 9 08:09:43 2019 +0100
omit prefixing the containing WAD file name if its the IWAD
---
src/doom/m_menu.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c
index 4c08fa8d..177681b2 100644
--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -635,9 +635,18 @@ void M_DoSave(int slot)
//
static void SetDefaultSaveName(int slot)
{
- M_snprintf(savegamestrings[itemOn], SAVESTRINGSIZE - 1,
- "%s: %s", M_BaseName(maplumpinfo->wad_file->path),
- maplumpinfo->name);
+ // map from IWAD or PWAD?
+ if (maplumpinfo->wad_file == lumpinfo[0]->wad_file)
+ {
+ M_snprintf(savegamestrings[itemOn], SAVESTRINGSIZE - 1,
+ "%s", maplumpinfo->name);
+ }
+ else
+ {
+ M_snprintf(savegamestrings[itemOn], SAVESTRINGSIZE - 1,
+ "%s: %s", M_BaseName(maplumpinfo->wad_file->path),
+ maplumpinfo->name);
+ }
joypadSave = false;
}