commit b18f4641c3043d097038a8e391687a8735197898
Author: mfrancis95 <mikefrancis95@gmail.com>
AuthorDate: Wed Dec 12 13:28:07 2018 -0500
Commit: mfrancis95 <mikefrancis95@gmail.com>
CommitDate: Wed Dec 12 13:28:07 2018 -0500
Strife: Make finding VOICES.wad case-insensitive when the -iwad parameter is used (fix #1120)
---
src/strife/d_main.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index a11c6226..29d84ca0 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -855,10 +855,8 @@ void D_IdentifyVersion(void)
voiceswad = M_SafeFilePath(iwadpath, "voices.wad");
Z_Free(iwadpath);
- if(!M_FileExists(voiceswad))
- Z_Free(voiceswad);
- else
- name = voiceswad;
+ name = M_FileCaseExists(voiceswad);
+ Z_Free(voiceswad);
}
// not found? try global search paths
@@ -877,7 +875,7 @@ void D_IdentifyVersion(void)
{
// add it.
D_AddFile(name);
- p ? Z_Free(name) : free(name);
+ free(name);
}
}
}