From b5106b68a43101ad5eceac8f6a178415a4d3a9d8 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sat, 30 May 2009 21:14:31 +0000 Subject: [PATCH] Now builds and works again. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3206 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/sw/vid_fodquake.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/engine/sw/vid_fodquake.c b/engine/sw/vid_fodquake.c index 714813914..1b4fb7465 100644 --- a/engine/sw/vid_fodquake.c +++ b/engine/sw/vid_fodquake.c @@ -64,6 +64,13 @@ static void Fod_Cvar_Register(cvar_t *cvar) /* And some funny prototypes. Just because. */ void Sys_Video_SetPalette(void *display, unsigned char *palette); +#define byte qbyte + +#define D_BeginDirectRect FodQuake_BeginDirectRect +#define D_EndDirectRect FodQuake_EndDirectRect +#define VID_LockBuffer FodQuake_LockBuffer +#define VID_UnlockBuffer FodQuake_UnlockBuffer + #include "fod/vid_x11.c" #include "fod/in_x11.c" @@ -237,7 +244,7 @@ void IN_Commands(void) Sys_Video_GetEvents(fod_display); } -void IN_Move(usercmd_t *cmd, int pnum) +void IN_Move(float *movements, int pnum) { float mx, my; float mouse_deltadist; @@ -311,7 +318,7 @@ void IN_Move(usercmd_t *cmd, int pnum) } else { - if (cmd) + if (movements) { if ((in_strafe.state[pnum] & 1) && noclip_anglehack) movements[2] -= m_forward.value * mouse_y;