foxygit / doom Log in
commit 5a04f3310ecb84e01130ebd4ce3717dd75676074
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Mon Jun 24 09:34:43 2019 +0200
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Mon Jun 24 09:34:43 2019 +0200

    reverse the order of map and PWAD name in default savegame name

    PWAD file names tend to be rather long and a too long file name could
    shift the map name out of the buffer size, so it would still be
    unclear which map the savegame actually belongs to.
---
 src/doom/m_menu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c
index ee9e6719..f91c32d2 100644
--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -644,8 +644,8 @@ static void SetDefaultSaveName(int slot)
     else
     {
         M_snprintf(savegamestrings[itemOn], SAVESTRINGSIZE,
-                   "%s: %s", W_WadNameForLump(maplumpinfo),
-                   maplumpinfo->name);
+                   "%s (%s)", maplumpinfo->name
+                   W_WadNameForLump(maplumpinfo));
     }
     M_ForceUppercase(savegamestrings[itemOn]);
     joypadSave = false;