From bc868d8c60b2b340eaa42acb457ec86abe37e6de Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Fri, 14 Aug 2020 06:32:03 -0400 Subject: [PATCH] m_misc compiles --- src/m_misc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/m_misc.c b/src/m_misc.c index 6ebd9e796..123e94196 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -532,6 +532,8 @@ void Command_ChangeConfig_f(void) */ void M_FirstLoadConfig(void) { + UINT8 i; + // configfile is initialised by d_main when searching for the wad? // check for a custom config file @@ -647,9 +649,14 @@ void M_SaveConfig(const char *filename) if (!dedicated) { if (tutorialmode && tutorialgcs) - G_SaveKeySetting(f, gamecontroldefault[0][gcs_custom]); // using gcs_custom as temp storage + { + // using gcs_custom as temp storage + G_SaveKeySetting(f, gamecontroldefault[0][gcs_custom], gamecontrol[1], gamecontrol[2], gamecontrol[3]); + } else - G_SaveKeySetting(f, gamecontrol); + { + G_SaveKeySetting(f, gamecontrol[0], gamecontrol[1], gamecontrol[2], gamecontrol[3]); + } } fclose(f);