From 292ace2d26c12283770c30e069825e715f31474e Mon Sep 17 00:00:00 2001 From: SNMetamorph Date: Sun, 16 Mar 2025 21:21:31 +0400 Subject: [PATCH] engine: client: fixed SQB in CL_ParseEvent & CL_ParseReliableEvent --- engine/client/cl_events.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/engine/client/cl_events.c b/engine/client/cl_events.c index 73000e05..9639409a 100644 --- a/engine/client/cl_events.c +++ b/engine/client/cl_events.c @@ -405,7 +405,11 @@ void CL_ParseReliableEvent( sizebuf_t *msg, connprotocol_t proto ) } if( args.entindex > 0 && args.entindex <= cl.maxclients ) - args.angles[PITCH] *= -3.0f; + { + args.angles[PITCH] *= 3.0f; + if( !FBitSet( host.features, ENGINE_COMPENSATE_QUAKE_BUG )) + args.angles[PITCH] = -args.angles[PITCH]; + } CL_QueueEvent( FEV_RELIABLE|FEV_SERVER, event_index, delay, &args ); } @@ -477,7 +481,9 @@ void CL_ParseEvent( sizebuf_t *msg, connprotocol_t proto ) if( state->number > 0 && state->number <= cl.maxclients ) { - args.angles[PITCH] *= -3.0f; + args.angles[PITCH] *= 3.0f; + if( !FBitSet( host.features, ENGINE_COMPENSATE_QUAKE_BUG )) + args.angles[PITCH] = -args.angles[PITCH]; CL_CalcPlayerVelocity( state->number, args.velocity ); args.ducking = ( state->usehull == 1 ); } @@ -487,7 +493,11 @@ void CL_ParseEvent( sizebuf_t *msg, connprotocol_t proto ) if( args.entindex != 0 ) { if( args.entindex > 0 && args.entindex <= cl.maxclients ) - args.angles[PITCH] /= -3.0f; + { + args.angles[PITCH] /= 3.0f; + if( !FBitSet( host.features, ENGINE_COMPENSATE_QUAKE_BUG )) + args.angles[PITCH] = -args.angles[PITCH]; + } } }