Add tutorialgcs variable for optional control scheme loading

This commit is contained in:
mazmazz 2018-11-12 16:50:03 -05:00
parent c7a855de7a
commit ab084f1bc9
2 changed files with 2 additions and 1 deletions

View File

@ -129,6 +129,7 @@ INT16 bootmap; //bootmap for loading a map on startup
INT16 tutorialmap = 0; // map to load for tutorial
boolean tutorialmode = false; // are we in a tutorial right now?
boolean tutorialgcs = gcs_custom; // which control scheme is loaded?
boolean looptitle = false;

View File

@ -542,7 +542,7 @@ void M_SaveConfig(const char *filename)
CV_SaveVariables(f);
if (!dedicated)
{
if (tutorialmode)
if (tutorialmode && tutorialgcs)
G_SaveKeySetting(f, gamecontroldefault[gcs_custom], gamecontrolbis); // using gcs_custom as temp storage
else
G_SaveKeySetting(f, gamecontrol, gamecontrolbis);