mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add tutorialgcs variable for optional control scheme loading
This commit is contained in:
parent
36d1088d20
commit
42fe8b78c1
2 changed files with 2 additions and 1 deletions
|
|
@ -129,6 +129,7 @@ INT16 bootmap; //bootmap for loading a map on startup
|
||||||
|
|
||||||
INT16 tutorialmap = 0; // map to load for tutorial
|
INT16 tutorialmap = 0; // map to load for tutorial
|
||||||
boolean tutorialmode = false; // are we in a tutorial right now?
|
boolean tutorialmode = false; // are we in a tutorial right now?
|
||||||
|
boolean tutorialgcs = gcs_custom; // which control scheme is loaded?
|
||||||
|
|
||||||
boolean looptitle = false;
|
boolean looptitle = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -542,7 +542,7 @@ void M_SaveConfig(const char *filename)
|
||||||
CV_SaveVariables(f);
|
CV_SaveVariables(f);
|
||||||
if (!dedicated)
|
if (!dedicated)
|
||||||
{
|
{
|
||||||
if (tutorialmode)
|
if (tutorialmode && tutorialgcs)
|
||||||
G_SaveKeySetting(f, gamecontroldefault[gcs_custom], gamecontrolbis); // using gcs_custom as temp storage
|
G_SaveKeySetting(f, gamecontroldefault[gcs_custom], gamecontrolbis); // using gcs_custom as temp storage
|
||||||
else
|
else
|
||||||
G_SaveKeySetting(f, gamecontrol, gamecontrolbis);
|
G_SaveKeySetting(f, gamecontrol, gamecontrolbis);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue