mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
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:
parent
ae4bf378c0
commit
d7c8111ea0
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue