From ad32eaeee0280959431d09f6b5153d43fc7dab07 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 5 Jul 2017 05:37:52 +0000 Subject: [PATCH] Don't execute setcfgname if the provided name is the same as the one already in place. git-svn-id: https://svn.eduke32.com/eduke32@6317 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamedef.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index 6118b31f8..c45c50eac 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -2745,6 +2745,9 @@ void C_InitQuotes(void) LUNATIC_EXTERN void C_SetCfgName(const char *cfgname) { + if (Bstrcmp(g_setupFileName, cfgname) == 0) // no need to do anything if name is the same + return; + char temp[BMAX_PATH]; struct Bstat st;