Move the simangles hack out of cl_view.

The places that will need to be fixed are now three, but cl_view.c now
doesn't mess with values it shouldn't alter.
This commit is contained in:
Bill Currie 2012-06-01 08:14:41 +09:00
parent 42256021fc
commit d561d5587d
4 changed files with 3 additions and 2 deletions

View file

@ -537,6 +537,7 @@ Cam_SetView (void)
}
VectorCopy (cam_viewangles, cl.viewangles);
VectorCopy (cl.viewangles, cl.simangles);
cl.simangles[ROLL] = 0; // FIXME @@@
}
#endif

View file

@ -1547,6 +1547,7 @@ CL_ParseServerMessage (void)
Sys_MaskPrintf (SYS_DEV, "%f ", cl.simorg[i]);
Sys_MaskPrintf (SYS_DEV, "\nintermission simangles: ");
MSG_ReadAngleV (net_message, cl.simangles);
cl.simangles[ROLL] = 0; // FIXME @@@
for (i = 0; i < 3; i++)
Sys_MaskPrintf (SYS_DEV, "%f ", cl.simangles[i]);
Sys_MaskPrintf (SYS_DEV, "\n");

View file

@ -130,6 +130,7 @@ CL_PredictMove (void)
return;
VectorCopy (cl.viewangles, cl.simangles);
cl.simangles[ROLL] = 0; // FIXME @@@
// this is the last frame received from the server
from = &cl.frames[cls.netchan.incoming_sequence & UPDATE_MASK];

View file

@ -697,8 +697,6 @@ DropPunchAngle (void)
void
V_RenderView (void)
{
cl.simangles[ROLL] = 0; // FIXME @@@
if (cls.state != ca_active)
return;