1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Spoike 2005-01-07 02:38:41 +00:00
parent 9f7ca44459
commit 5f2aa993de

View file

@ -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);