shithub: choc

Download patch

ref: 221e62bfc2a83e610b16bd1c7d86e68eced02ba4
parent: f6717da5ddf562a44cc1f8420a0a70a5038b6f1c
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Nov 3 09:19:16 EDT 2018

strife: Allow SEH replacement for "empty slot".

This string was not wrapped in a DEH_String() call so could not be
replaced in a SeHackEd file. Thanks to chungy for feedback (part
of #1040)

--- a/src/strife/m_menu.c
+++ b/src/strife/m_menu.c
@@ -555,7 +555,7 @@
         handle = fopen(fname, "rb");
         if(handle == NULL)
         {
-            M_StringCopy(savegamestrings[i], EMPTYSTRING,
+            M_StringCopy(savegamestrings[i], DEH_String(EMPTYSTRING),
                          sizeof(savegamestrings[i]));
             LoadMenu[i].status = 0;
             continue;
@@ -769,7 +769,7 @@
     //saveSlot = choice;
 
     M_StringCopy(saveOldString, savegamestrings[choice], sizeof(saveOldString));
-    if (!strcmp(savegamestrings[choice],EMPTYSTRING))
+    if (!strcmp(savegamestrings[choice], DEH_String(EMPTYSTRING)))
         savegamestrings[choice][0] = 0;
     saveCharIndex = strlen(savegamestrings[choice]);
 }