armor = MSG_ReadByte ();
blood = MSG_ReadByte ();
- MSG_ReadVector(from);
+ MSG_ReadVector(from, cl.protocol);
count = blood*0.5 + armor*0.5;
if (count < 10)
VectorCopy(cl.viewangles, viewangles);
// stair smoothing
+ //Con_Printf("cl.onground %i oldz %f newz %f\n", cl.onground, oldz, vieworg[2]);
if (cl.onground && oldz < vieworg[2])
{
oldz += (cl.time - cl.oldtime) * cl_stairsmoothspeed.value;
oldz = vieworg[2] = bound(vieworg[2] - 16, oldz, vieworg[2]);
}
+ else if (cl.onground && oldz > vieworg[2])
+ {
+ oldz -= (cl.time - cl.oldtime) * cl_stairsmoothspeed.value;
+ oldz = vieworg[2] = bound(vieworg[2], oldz, vieworg[2] + 16);
+ }
else
oldz = vieworg[2];