From 252face9c54de31c8c37de46def44fd78063ec18 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 24 May 2009 11:20:21 +0000 Subject: [PATCH] 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 --- engine/client/in_morphos.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/client/in_morphos.c b/engine/client/in_morphos.c index 22d70c7e3..7e07da54a 100644 --- a/engine/client/in_morphos.c +++ b/engine/client/in_morphos.c @@ -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 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 (cmd) - cmd->sidemove += m_side.value * mouse_x; + movements[1] += m_side.value * mouse_x; } else { @@ -298,9 +298,9 @@ void IN_Move (usercmd_t *cmd, int pnum) if (cmd) { if ((in_strafe.state[pnum] & 1) && noclip_anglehack) - cmd->upmove -= m_forward.value * mouse_y; + movements[2] -= m_forward.value * mouse_y; else - cmd->forwardmove -= m_forward.value * mouse_y; + movements[0] -= m_forward.value * mouse_y; } } mouse_x = mouse_y = 0.0;