- Add option to reset controls to defaults.

This commit is contained in:
drfrag 2019-12-07 22:23:02 +01:00
parent 73e6da259e
commit efb3465921
2 changed files with 6 additions and 0 deletions

View file

@ -1102,6 +1102,10 @@ CCMD(reset2saved)
R_SetViewSize (screenblocks);
}
CCMD(resetb2defaults)
{
C_SetDefaultBindings ();
}
// This really should be in the script but we can't do scripted CCMDs yet.
CCMD(undocolorpic)

View file

@ -489,6 +489,8 @@ OptionMenu "CustomizeControls" protected
Submenu "$CNTRLMNU_OTHER" , "OtherControlsMenu"
Submenu "$CNTRLMNU_POPUPS" , "StrifeControlsMenu"
Submenu "$MAPCNTRLMNU_CONTROLS" , "MapControlsMenu"
StaticText " "
SafeCommand "$OPTMNU_DEFAULTS", "resetb2defaults"
}
OptionMenu "ActionControlsMenu" protected