Skip to content

Commit

Permalink
Merge remote-tracking branch 'sphere/fix_onground_flag_reset'
Browse files Browse the repository at this point in the history
  • Loading branch information
j0zzz committed Apr 14, 2024
2 parents d7b815f + 78106bb commit 16cd6f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion trunk/cl_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,11 @@ void CL_ParseServerMessage (void)
else if (cl_shownet.value == 2)
Con_Printf ("------------------\n");

cl.onground = false; // unless the server says otherwise
// Sphere -- vanilla Quake reset cl.onground to false as a default here,
// which may not be overwritten with the correct value when the server sends
// packets without a clientdata message. Since a clientdata message always
// sets cl.onground, we do not need a default and can instead keep it at
// whatever it was on the last received one.

// parse the message
MSG_BeginReading ();
Expand Down

0 comments on commit 16cd6f2

Please sign in to comment.