MR_Keydown( key, ascii );
break;
case key_game:
+ if (COM_CheckParm ("-demolooponly"))
+ {
+ CL_Disconnect ();
+ return;
+ }
MR_ToggleMenu_f();
break;
default:
if( !(key_consoleactive && consolekeys[ key ]) && bind && !strncmp( bind, "toggleconsole", strlen( "toggleconsole" ) ) ) {
Cbuf_AddText( bind );
Cbuf_AddText( "\n" );
+ if( ascii != STRING_COLOR_TAG ) {
+ return;
+ }
} else {
// during demo playback, all keys ingame bring up the main menu
if( cls.demoplayback && !key_consoleactive && key_dest == key_game ) {
- MR_ToggleMenu_f ();
+ if (!COM_CheckParm ("-demolooponly"))
+ MR_ToggleMenu_f ();
return;
}