From 5f2aa993de3e7779943e51909630140367af4f9c Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 7 Jan 2005 02:38:41 +0000 Subject: [PATCH] Needed casts. The pmove code on the server got it's own usercmd, so the clients pmove code needs to incorporate casts appropriatly also. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@743 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_pred.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/client/cl_pred.c b/engine/client/cl_pred.c index a7e28fa05..8baeed6a3 100644 --- a/engine/client/cl_pred.c +++ b/engine/client/cl_pred.c @@ -243,7 +243,7 @@ void CLQ2_PredictMovement (void) //q2 doesn't support split clients. int ack, current; int frame; int oldframe; - usercmd_t *cmd; + q2usercmd_t *cmd; q2pmove_t pm; int step; int oldz; @@ -295,7 +295,7 @@ void CLQ2_PredictMovement (void) //q2 doesn't support split clients. while (++ack < current) { frame = ack & (UPDATE_MASK); - cmd = &cl.frames[frame].cmd[0]; + cmd = (q2usercmd_t*)&cl.frames[frame].cmd[0]; pm.cmd = *cmd; Q2_Pmove (&pm); @@ -306,7 +306,7 @@ void CLQ2_PredictMovement (void) //q2 doesn't support split clients. if (independantphysics[0].msec) { - cmd = &independantphysics[0]; + cmd = (q2usercmd_t*)&independantphysics[0]; pm.cmd = *cmd; Q2_Pmove (&pm);