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
This commit is contained in:
Andrei Drexler 2022-04-23 11:33:50 +03:00 committed by Ozkan Sezer
parent ae4bf378c0
commit d7c8111ea0

View file

@ -356,7 +356,7 @@ void CL_ParseServerInfo (void)
str = MSG_ReadString (); str = MSG_ReadString ();
if (!str[0]) if (!str[0])
break; break;
if (nummodels==MAX_MODELS) if (nummodels == MAX_MODELS)
{ {
Host_Error ("Server sent too many model precaches"); Host_Error ("Server sent too many model precaches");
} }
@ -376,7 +376,7 @@ void CL_ParseServerInfo (void)
str = MSG_ReadString (); str = MSG_ReadString ();
if (!str[0]) if (!str[0])
break; break;
if (numsounds==MAX_SOUNDS) if (numsounds == MAX_SOUNDS)
{ {
Host_Error ("Server sent too many sound precaches"); Host_Error ("Server sent too many sound precaches");
} }
@ -976,7 +976,7 @@ void CL_ParseServerMessage (void)
else if (cl_shownet.value == 2) else if (cl_shownet.value == 2)
Con_Printf ("------------------\n"); Con_Printf ("------------------\n");
cl.onground = false; // unless the server says otherwise // cl.onground = false; // unless the server says otherwise
// //
// parse the message // parse the message
// //