mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
m_misc compiles
This commit is contained in:
parent
c09e54d073
commit
bc868d8c60
1 changed files with 9 additions and 2 deletions
11
src/m_misc.c
11
src/m_misc.c
|
|
@ -532,6 +532,8 @@ void Command_ChangeConfig_f(void)
|
||||||
*/
|
*/
|
||||||
void M_FirstLoadConfig(void)
|
void M_FirstLoadConfig(void)
|
||||||
{
|
{
|
||||||
|
UINT8 i;
|
||||||
|
|
||||||
// configfile is initialised by d_main when searching for the wad?
|
// configfile is initialised by d_main when searching for the wad?
|
||||||
|
|
||||||
// check for a custom config file
|
// check for a custom config file
|
||||||
|
|
@ -647,9 +649,14 @@ void M_SaveConfig(const char *filename)
|
||||||
if (!dedicated)
|
if (!dedicated)
|
||||||
{
|
{
|
||||||
if (tutorialmode && tutorialgcs)
|
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
|
else
|
||||||
G_SaveKeySetting(f, gamecontrol);
|
{
|
||||||
|
G_SaveKeySetting(f, gamecontrol[0], gamecontrol[1], gamecontrol[2], gamecontrol[3]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue