diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-06-03 18:18:55 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-06-03 18:18:55 +0000 |
commit | 9d9b671cc77440e9b3bfcd74288f09a720c0ee6b (patch) | |
tree | ecd94136c7742b1aab73f4e43f9e454cd0c63eba /source/cl_keys.c | |
parent | bd27c070620fdc96c5c3e222b3bfe43657ce90c2 (diff) |
Don't cap maxmsglen on loopback connections.
Use seperate buffer for stuffcmd processing on client so that something like ‘map foobar;wait;wait;wait;give shells’ works (original Q2 used deferred buffer for this).
Don't include netgraph code into release builds.
Made ‘changing’ and ‘precache’ commands not available from console, since they may confuse the client when typed manually.
Client now handles newlines embedded into ‘cstring’ and ‘cstring2’ layout commands properly.
Fixed a crash when displaying inventory.
Detect zero bytes embedded into config files and refuse to execute them.
Diffstat (limited to 'source/cl_keys.c')
-rw-r--r-- | source/cl_keys.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/cl_keys.c b/source/cl_keys.c index b747722..c131b25 100644 --- a/source/cl_keys.c +++ b/source/cl_keys.c @@ -709,7 +709,7 @@ void Key_Event( unsigned key, qboolean down, unsigned time ) { !cl.putaway ) { // put away help computer / inventory - Cbuf_AddText( "cmd putaway\n" ); + CL_ClientCommand( "putaway" ); cl.putaway = qtrue; return; } @@ -780,7 +780,7 @@ void Key_Event( unsigned key, qboolean down, unsigned time ) { if( kb && kb[0] == '+' ) { Q_snprintf( cmd, sizeof( cmd ), "-%s %i %i\n", kb + 1, key, time ); - Cbuf_InsertText( cmd ); + Cbuf_InsertText( &cmd_buffer, cmd ); } #ifndef USE_CHAR_EVENTS if( keyshift[key] != key ) { @@ -788,7 +788,7 @@ void Key_Event( unsigned key, qboolean down, unsigned time ) { if( kb && kb[0] == '+' ) { Q_snprintf( cmd, sizeof( cmd ), "-%s %i %i\n", kb + 1, key, time ); - Cbuf_InsertText( cmd ); + Cbuf_InsertText( &cmd_buffer, cmd ); } } #endif // USE_CHAR_EVENTS @@ -810,10 +810,10 @@ void Key_Event( unsigned key, qboolean down, unsigned time ) { if( kb[0] == '+' ) { // button commands add keynum and time as a parm Q_snprintf( cmd, sizeof( cmd ), "%s %i %i\n", kb, key, time ); - Cbuf_InsertText( cmd ); + Cbuf_InsertText( &cmd_buffer, cmd ); } else { - Cbuf_InsertText( kb ); - Cbuf_InsertText( "\n" ); + Cbuf_InsertText( &cmd_buffer, kb ); + Cbuf_InsertText( &cmd_buffer, "\n" ); } } return; |