diff options
author | Simon Howard | 2011-09-24 17:55:32 +0000 |
---|---|---|
committer | Simon Howard | 2011-09-24 17:55:32 +0000 |
commit | 9af0a3c8fd56dcf170698c3867a376a822f39d08 (patch) | |
tree | 874080c6d0b77a33bda0c55f72c804bea8be743b /src/hexen/h2_main.c | |
parent | df88eb04af3ec3b4abf8d4d4befa580d818902b9 (diff) | |
download | chocolate-doom-9af0a3c8fd56dcf170698c3867a376a822f39d08.tar.gz chocolate-doom-9af0a3c8fd56dcf170698c3867a376a822f39d08.tar.bz2 chocolate-doom-9af0a3c8fd56dcf170698c3867a376a822f39d08.zip |
Add -testcontrols to Hexen.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2398
Diffstat (limited to 'src/hexen/h2_main.c')
-rw-r--r-- | src/hexen/h2_main.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index c78d662a..20720e4e 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -92,6 +92,7 @@ static void DrawAndBlit(void); static void ExecOptionSCRIPTS(char **args, int tag); static void ExecOptionSKILL(char **args, int tag); static void ExecOptionPLAYDEMO(char **args, int tag); +static void ExecOptionTestControls(char **args, int tag); static void CreateSavePath(void); static void WarpCheck(void); @@ -137,6 +138,7 @@ static execOpt_t ExecOptions[] = { {"-skill", ExecOptionSKILL, 1, 0}, {"-playdemo", ExecOptionPLAYDEMO, 1, 0}, {"-timedemo", ExecOptionPLAYDEMO, 1, 0}, + {"-testcontrols", ExecOptionTestControls, 0, 0}, {NULL, NULL, 0, 0} // Terminator }; @@ -517,6 +519,18 @@ static void ExecOptionPLAYDEMO(char **args, int tag) //========================================================================== // +// ExecOptionTestControls +// +//========================================================================== + +static void ExecOptionTestControls(char **args, int tag) +{ + autostart = true; + testcontrols = true; +} + +//========================================================================== +// // ExecOptionSCRIPTS // //========================================================================== @@ -656,6 +670,11 @@ static void DrawAndBlit(void) break; } + if (testcontrols) + { + V_DrawMouseSpeedBox(testcontrols_mousespeed); + } + if (paused && !MenuActive && !askforquit) { if (!netgame) |