frametime = (cl.time - cl.calcrefdef_prevtime) * cl.movevars_timescale;
- if(cl_followmodel.value || cl_leanmodel.value)
+ if(cl_followmodel.integer || cl_leanmodel.integer)
{
// 1. if we teleported, clear the frametime... the lowpass will recover the previous value then
if(teleported)
VectorAdd(vieworg, gunorg, gunorg);
VectorAdd(viewangles, gunangles, gunangles);
}
+ else
+ {
+ // Just initialize gunorg/gunangles.
+ VectorCopy(vieworg, gunorg);
+ VectorCopy(viewangles, gunangles);
+ }
// bounded XY speed, used by several effects below
xyspeed = bound (0, sqrt(clvelocity[0]*clvelocity[0] + clvelocity[1]*clvelocity[1]), cl_bob_velocity_limit.value);