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/sv_user.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/sv_user.c')
-rw-r--r-- | source/sv_user.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/sv_user.c b/source/sv_user.c index 61ac62c..0145eb1 100644 --- a/source/sv_user.c +++ b/source/sv_user.c @@ -402,13 +402,16 @@ void SV_New_f( void ) { MSG_WriteByte( 0 ); // not enhanced MSG_WriteShort( sv_client->version ); MSG_WriteByte( 0 ); // no advanced deltas - MSG_WriteByte( sv_strafejump_hack->integer ? 1 : 0 ); + MSG_WriteByte( sv_client->pmp.strafehack ); break; case PROTOCOL_VERSION_Q2PRO: MSG_WriteShort( sv_client->version ); MSG_WriteByte( 2 ); // used to be GT_DEATHMATCH - MSG_WriteByte( sv_strafejump_hack->integer ? 1 : 0 ); - MSG_WriteByte( sv_qwmod->integer ); + MSG_WriteByte( sv_client->pmp.strafehack ); + MSG_WriteByte( sv_client->pmp.qwmode ); + if( sv_client->version >= PROTOCOL_VERSION_Q2PRO_WATERJUMP_HACK ) { + MSG_WriteByte( sv_client->pmp.waterhack ); + } break; default: break; |