1
0
Fork 0
forked from fte/fteqw

Should fix my breakage of morphos builds.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3200 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-05-24 11:20:21 +00:00
parent 9a20ae8fa2
commit 252face9c5

View file

@ -231,7 +231,7 @@ void IN_Commands(void)
} }
void IN_Move (usercmd_t *cmd, int pnum) void IN_Move (float *movements, int pnum)
{ {
extern int mousecursor_x, mousecursor_y; extern int mousecursor_x, mousecursor_y;
extern int mousemove_x, mousemove_y; extern int mousemove_x, mousemove_y;
@ -282,7 +282,7 @@ void IN_Move (usercmd_t *cmd, int pnum)
if ( (in_strafe.state[pnum] & 1) || (lookstrafe.value && (in_mlook.state[pnum] & 1) )) if ( (in_strafe.state[pnum] & 1) || (lookstrafe.value && (in_mlook.state[pnum] & 1) ))
{ {
if (cmd) if (cmd)
cmd->sidemove += m_side.value * mouse_x; movements[1] += m_side.value * mouse_x;
} }
else else
{ {
@ -298,9 +298,9 @@ void IN_Move (usercmd_t *cmd, int pnum)
if (cmd) if (cmd)
{ {
if ((in_strafe.state[pnum] & 1) && noclip_anglehack) if ((in_strafe.state[pnum] & 1) && noclip_anglehack)
cmd->upmove -= m_forward.value * mouse_y; movements[2] -= m_forward.value * mouse_y;
else else
cmd->forwardmove -= m_forward.value * mouse_y; movements[0] -= m_forward.value * mouse_y;
} }
} }
mouse_x = mouse_y = 0.0; mouse_x = mouse_y = 0.0;