summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_atoms.c6
-rw-r--r--src/ui/ui_main.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c
index af3a3ef..d73e073 100644
--- a/src/ui/ui_atoms.c
+++ b/src/ui/ui_atoms.c
@@ -157,7 +157,7 @@ static void UI_MessageMode_f( void )
trap_Cvar_Set( "ui_sayBuffer", "" );
- switch( arg[ 11 ] )
+ switch( arg[ strlen( arg ) - 1 ] )
{
default:
case '\0':
@@ -201,7 +201,9 @@ struct uicmd
{ "messagemode", UI_MessageMode_f },
{ "messagemode2", UI_MessageMode_f },
{ "ui_cache", UI_Cache_f },
- { "ui_load", UI_Load },
+ { "ui_load", UI_Load },
+ { "ui_messagemode", UI_MessageMode_f },
+ { "ui_messagemode2", UI_MessageMode_f },
{ "ui_report", UI_Report }
};
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 0278cca..096253a 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -4123,6 +4123,8 @@ void UI_Init( qboolean inGameLoad )
uiInfo.previewMovie = -1;
UI_ParseResolutions( );
+
+ trap_Cvar_Set( "ui_useMessagemode", "1" );
}