mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
engine: client: escape keybindings and rcon commands
This commit is contained in:
parent
9159d406e3
commit
2356bc9905
@ -1306,7 +1306,11 @@ void CL_Rcon_f( void )
|
|||||||
|
|
||||||
for( i = 1; i < Cmd_Argc(); i++ )
|
for( i = 1; i < Cmd_Argc(); i++ )
|
||||||
{
|
{
|
||||||
Q_strcat( message, Cmd_Argv( i ));
|
string commmand;
|
||||||
|
|
||||||
|
Cmd_Escape( command, Cmd_Argv( i ), sizeof( command ));
|
||||||
|
|
||||||
|
Q_strcat( message, command );
|
||||||
Q_strcat( message, " " );
|
Q_strcat( message, " " );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -462,6 +462,7 @@ Writes lines containing "bind key value"
|
|||||||
void Key_WriteBindings( file_t *f )
|
void Key_WriteBindings( file_t *f )
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
string newCommand;
|
||||||
|
|
||||||
if( !f ) return;
|
if( !f ) return;
|
||||||
|
|
||||||
@ -472,7 +473,8 @@ void Key_WriteBindings( file_t *f )
|
|||||||
if( !COM_CheckString( keys[i].binding ))
|
if( !COM_CheckString( keys[i].binding ))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
FS_Printf( f, "bind %s \"%s\"\n", Key_KeynumToString( i ), keys[i].binding );
|
Cmd_Escape( newCommand, keys[i].binding, sizeof( newCommand ));
|
||||||
|
FS_Printf( f, "bind %s \"%s\"\n", Key_KeynumToString( i ), newCommand );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user