summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2015-12-05 23:24:22 +0100
committerPaweł Redman <pawel.redman@gmail.com>2015-12-05 23:24:22 +0100
commitf99fa9618d12882298de857722a22d1e63f3e583 (patch)
tree5153847953b9ad721c9ab23e8855a3f4ce0ae411 /src
parent3fddb760bf3bbc19f59953f1cb067b613f2534ef (diff)
Use ui's chat prompt on compatible clients.
Diffstat (limited to 'src')
-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" );
}