From f99fa9618d12882298de857722a22d1e63f3e583 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 5 Dec 2015 23:24:22 +0100 Subject: Use ui's chat prompt on compatible clients. --- src/ui/ui_atoms.c | 6 ++++-- src/ui/ui_main.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/ui') 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" ); } -- cgit