diff --git a/src/g_input.c b/src/g_input.c index ebebc676a..d8a99c97d 100644 --- a/src/g_input.c +++ b/src/g_input.c @@ -50,9 +50,14 @@ INT32 gamecontroldefault[num_gamecontrolschemes][num_gamecontrols][2]; // defaul // lists of GC codes for selective operation const INT32 gclist_tutorial[num_gclist_tutorial] = { gc_forward, gc_backward, gc_strafeleft, gc_straferight, - gc_lookup, gc_lookdown, gc_turnleft, gc_turnright //, gc_centerview, - //gc_jump, gc_use, - //gc_fire, gc_firenormal + gc_lookup, gc_lookdown, gc_turnleft, gc_turnright, gc_centerview, + gc_jump, gc_use, + gc_fire, gc_firenormal +}; + +const INT32 gclist_tutorial_check[num_gclist_tutorial_check] = { + gc_forward, gc_backward, gc_strafeleft, gc_straferight, + gc_turnleft, gc_turnright }; const INT32 gclist_movement[num_gclist_movement] = { diff --git a/src/g_input.h b/src/g_input.h index 10a0991e0..01acf3ae0 100644 --- a/src/g_input.h +++ b/src/g_input.h @@ -128,13 +128,15 @@ extern INT32 gamecontroldefault[num_gamecontrolschemes][num_gamecontrols][2]; // #define PLAYER1INPUTDOWN(gc) (gamekeydown[gamecontrol[gc][0]] || gamekeydown[gamecontrol[gc][1]]) #define PLAYER2INPUTDOWN(gc) (gamekeydown[gamecontrolbis[gc][0]] || gamekeydown[gamecontrolbis[gc][1]]) -#define num_gclist_tutorial 8 // 13 +#define num_gclist_tutorial 13 +#define num_gclist_tutorial_check 6 #define num_gclist_movement 4 #define num_gclist_camera 2 #define num_gclist_jump 1 #define num_gclist_use 1 extern const INT32 gclist_tutorial[num_gclist_tutorial]; +extern const INT32 gclist_tutorial_check[num_gclist_tutorial_check]; extern const INT32 gclist_movement[num_gclist_movement]; extern const INT32 gclist_camera[num_gclist_camera]; extern const INT32 gclist_jump[num_gclist_jump]; diff --git a/src/m_menu.c b/src/m_menu.c index 4738006fd..e6bba723d 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -6169,7 +6169,7 @@ static void M_StartTutorial(INT32 choice) if (!tutorialmap) return; // no map to go to, don't bother - if (choice != INT32_MAX && G_GetControlScheme(gamecontrol, gclist_tutorial, num_gclist_tutorial) == gcs_custom) + if (choice != INT32_MAX && G_GetControlScheme(gamecontrol, gclist_tutorial_check, num_gclist_tutorial_check) == gcs_custom) { M_StartMessage("Do you want to try the \202recommended \202movement controls\x80?\n\nWe will set them just for this tutorial.\n\nPress 'Y' or 'Enter' to confirm, \nor any key to keep \nyour current controls.\n",M_TutorialControlResponse,MM_YESNO); return;