Add tutorialgcs variable for optional control scheme loading
This commit is contained in:
parent
c7a855de7a
commit
ab084f1bc9
|
@ -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…
Reference in New Issue