Skip to content

Commit

Permalink
Use ui's chat prompt on compatible clients.
Browse files Browse the repository at this point in the history
  • Loading branch information
enneract committed Dec 5, 2015
1 parent 3fddb76 commit f99fa96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/ui_atoms.c
Expand Up @@ -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':
Expand Down Expand Up @@ -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 }
};

Expand Down
2 changes: 2 additions & 0 deletions src/ui/ui_main.c
Expand Up @@ -4123,6 +4123,8 @@ void UI_Init( qboolean inGameLoad )
uiInfo.previewMovie = -1;

UI_ParseResolutions( );

trap_Cvar_Set( "ui_useMessagemode", "1" );
}


Expand Down

0 comments on commit f99fa96

Please sign in to comment.