From d7c8111ea05605d028f79babd808c99c8dca5bda Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Sat, 23 Apr 2022 11:33:50 +0300 Subject: [PATCH] Don't reset onground flag on new server message This fixes physics issue with ramps/elevators when the server is continuously sending messages without client data in them (with updated onground info), e.g. stuffcmds for fog animation, or tempentities https://www.celephais.net/board/view_thread.php?id=61381&start=660&end=665 --- Quake/cl_parse.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Quake/cl_parse.c b/Quake/cl_parse.c index 4f7d1c02..da3d3478 100644 --- a/Quake/cl_parse.c +++ b/Quake/cl_parse.c @@ -322,7 +322,7 @@ void CL_ParseServerInfo (void) } } else cl.protocolflags = 0; - + // parse maxclients cl.maxclients = MSG_ReadByte (); if (cl.maxclients < 1 || cl.maxclients > MAX_SCOREBOARD) @@ -356,7 +356,7 @@ void CL_ParseServerInfo (void) str = MSG_ReadString (); if (!str[0]) break; - if (nummodels==MAX_MODELS) + if (nummodels == MAX_MODELS) { Host_Error ("Server sent too many model precaches"); } @@ -376,7 +376,7 @@ void CL_ParseServerInfo (void) str = MSG_ReadString (); if (!str[0]) break; - if (numsounds==MAX_SOUNDS) + if (numsounds == MAX_SOUNDS) { Host_Error ("Server sent too many sound precaches"); } @@ -842,7 +842,7 @@ void CL_ParseClientdata (void) else cl.viewent.alpha = ENTALPHA_DEFAULT; //johnfitz - + //johnfitz -- lerping //ericw -- this was done before the upper 8 bits of cl.stats[STAT_WEAPON] were filled in, breaking on large maps like zendar.bsp if (cl.viewent.model != cl.model_precache[cl.stats[STAT_WEAPON]]) @@ -976,7 +976,7 @@ void CL_ParseServerMessage (void) else if (cl_shownet.value == 2) Con_Printf ("------------------\n"); - cl.onground = false; // unless the server says otherwise +// cl.onground = false; // unless the server says otherwise // // parse the message //