diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-03-24 14:54:32 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-03-24 14:54:32 +0000 |
commit | 385ccd0e9a518933019a8c6f1fecad2ae660b766 (patch) | |
tree | 6b86f96c16a6d89a5803fce5081af64ac76165ab /source/cmd.c | |
parent | fd8cba03f93046e892a732da27f221406f726b7c (diff) |
Implemented a workaround for Q2 pmove bug resulting in swimming velocity in ‘z’ direction being heavily dependent of client's FPS when ‘+moveup’ is used.
New minor Q2PRO protocol version 1015.
Fixed command completion mode cursor positioning.
Disable ‘cl_updaterate’ variable until it is fully supported.
Added ‘sv_waterjump_hack’ variable, enabling the pmove bug workaround described above for supported clients.
Properly count connected MVD spectators in menus.
Update MVD menus as spectators join/leave the channels.
Diffstat (limited to 'source/cmd.c')
-rw-r--r-- | source/cmd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/cmd.c b/source/cmd.c index c575c55..8e9ac11 100644 --- a/source/cmd.c +++ b/source/cmd.c @@ -521,6 +521,7 @@ static char *cmd_null_string = ""; // complete command string, left untouched static char cmd_string[MAX_STRING_CHARS]; static size_t cmd_string_len; +size_t cmd_string_tail; // offsets of individual tokens into cmd_string static size_t cmd_offsets[MAX_STRING_TOKENS]; @@ -553,7 +554,7 @@ int Cmd_FindArgForOffset( size_t offset ) { break; } } - return i - 1; + return i - 1; } /* @@ -1075,12 +1076,14 @@ void Cmd_TokenizeString( const char *text, qboolean macroExpand ) { } // strip off any trailing whitespace + cmd_string_tail = 0; while( cmd_string_len ) { if( cmd_string[ cmd_string_len - 1 ] > ' ' ) { break; } cmd_string[ cmd_string_len - 1 ] = 0; cmd_string_len--; + cmd_string_tail++; } dest = cmd_data; |