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:
parent
9f7ca44459
commit
5f2aa993de
|
@ -243,7 +243,7 @@ void CLQ2_PredictMovement (void) //q2 doesn't support split clients.
|
||||||
int ack, current;
|
int ack, current;
|
||||||
int frame;
|
int frame;
|
||||||
int oldframe;
|
int oldframe;
|
||||||
usercmd_t *cmd;
|
q2usercmd_t *cmd;
|
||||||
q2pmove_t pm;
|
q2pmove_t pm;
|
||||||
int step;
|
int step;
|
||||||
int oldz;
|
int oldz;
|
||||||
|
@ -295,7 +295,7 @@ void CLQ2_PredictMovement (void) //q2 doesn't support split clients.
|
||||||
while (++ack < current)
|
while (++ack < current)
|
||||||
{
|
{
|
||||||
frame = ack & (UPDATE_MASK);
|
frame = ack & (UPDATE_MASK);
|
||||||
cmd = &cl.frames[frame].cmd[0];
|
cmd = (q2usercmd_t*)&cl.frames[frame].cmd[0];
|
||||||
|
|
||||||
pm.cmd = *cmd;
|
pm.cmd = *cmd;
|
||||||
Q2_Pmove (&pm);
|
Q2_Pmove (&pm);
|
||||||
|
@ -306,7 +306,7 @@ void CLQ2_PredictMovement (void) //q2 doesn't support split clients.
|
||||||
|
|
||||||
if (independantphysics[0].msec)
|
if (independantphysics[0].msec)
|
||||||
{
|
{
|
||||||
cmd = &independantphysics[0];
|
cmd = (q2usercmd_t*)&independantphysics[0];
|
||||||
|
|
||||||
pm.cmd = *cmd;
|
pm.cmd = *cmd;
|
||||||
Q2_Pmove (&pm);
|
Q2_Pmove (&pm);
|
||||||
|
|
Loading…
Reference in New Issue