mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Move setting from defaults to M_FirstLoadConfig, so it triggers even when the title screen doesn't start
This commit is contained in:
parent
0384cbb58a
commit
37dc402540
2 changed files with 8 additions and 8 deletions
|
|
@ -736,14 +736,6 @@ void D_StartTitle(void)
|
||||||
// empty maptol so mario/etc sounds don't play in sound test when they shouldn't
|
// empty maptol so mario/etc sounds don't play in sound test when they shouldn't
|
||||||
maptol = 0;
|
maptol = 0;
|
||||||
|
|
||||||
// reset to default player stuff
|
|
||||||
COM_BufAddText (va("%s \"%s\"\n",cv_playername.name,cv_defaultplayername.string));
|
|
||||||
COM_BufAddText (va("%s \"%s\"\n",cv_skin.name,cv_defaultskin.string));
|
|
||||||
COM_BufAddText (va("%s \"%s\"\n",cv_playercolor.name,cv_defaultplayercolor.string));
|
|
||||||
COM_BufAddText (va("%s \"%s\"\n",cv_playername2.name,cv_defaultplayername2.string));
|
|
||||||
COM_BufAddText (va("%s \"%s\"\n",cv_skin2.name,cv_defaultskin2.string));
|
|
||||||
COM_BufAddText (va("%s \"%s\"\n",cv_playercolor2.name,cv_defaultplayercolor2.string));
|
|
||||||
|
|
||||||
gameaction = ga_nothing;
|
gameaction = ga_nothing;
|
||||||
displayplayer = consoleplayer = 0;
|
displayplayer = consoleplayer = 0;
|
||||||
gametype = GT_COOP;
|
gametype = GT_COOP;
|
||||||
|
|
|
||||||
|
|
@ -521,6 +521,14 @@ void M_FirstLoadConfig(void)
|
||||||
// make sure I_Quit() will write back the correct config
|
// make sure I_Quit() will write back the correct config
|
||||||
// (do not write back the config if it crash before)
|
// (do not write back the config if it crash before)
|
||||||
gameconfig_loaded = true;
|
gameconfig_loaded = true;
|
||||||
|
|
||||||
|
// reset to default player stuff
|
||||||
|
COM_BufAddText (va("%s \"%s\"\n",cv_playername.name,cv_defaultplayername.string));
|
||||||
|
COM_BufAddText (va("%s \"%s\"\n",cv_skin.name,cv_defaultskin.string));
|
||||||
|
COM_BufAddText (va("%s \"%s\"\n",cv_playercolor.name,cv_defaultplayercolor.string));
|
||||||
|
COM_BufAddText (va("%s \"%s\"\n",cv_playername2.name,cv_defaultplayername2.string));
|
||||||
|
COM_BufAddText (va("%s \"%s\"\n",cv_skin2.name,cv_defaultskin2.string));
|
||||||
|
COM_BufAddText (va("%s \"%s\"\n",cv_playercolor2.name,cv_defaultplayercolor2.string));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Saves the game configuration.
|
/** Saves the game configuration.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue