mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 18:01:16 +00:00
Add tutorialgcs variable for optional control scheme loading
This commit is contained in:
parent
c7a855de7a
commit
ab084f1bc9
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
|
||||
boolean tutorialmode = false; // are we in a tutorial right now?
|
||||
boolean tutorialgcs = gcs_custom; // which control scheme is loaded?
|
||||
|
||||
boolean looptitle = false;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue