1
0
Fork 0
forked from fte/fteqw

Now builds and works again.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3206 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2009-05-30 21:14:31 +00:00
parent 6b21ccabee
commit b5106b68a4

View file

@ -64,6 +64,13 @@ static void Fod_Cvar_Register(cvar_t *cvar)
/* And some funny prototypes. Just because. */ /* And some funny prototypes. Just because. */
void Sys_Video_SetPalette(void *display, unsigned char *palette); 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/vid_x11.c"
#include "fod/in_x11.c" #include "fod/in_x11.c"
@ -237,7 +244,7 @@ void IN_Commands(void)
Sys_Video_GetEvents(fod_display); Sys_Video_GetEvents(fod_display);
} }
void IN_Move(usercmd_t *cmd, int pnum) void IN_Move(float *movements, int pnum)
{ {
float mx, my; float mx, my;
float mouse_deltadist; float mouse_deltadist;
@ -311,7 +318,7 @@ void IN_Move(usercmd_t *cmd, int pnum)
} }
else else
{ {
if (cmd) if (movements)
{ {
if ((in_strafe.state[pnum] & 1) && noclip_anglehack) if ((in_strafe.state[pnum] & 1) && noclip_anglehack)
movements[2] -= m_forward.value * mouse_y; movements[2] -= m_forward.value * mouse_y;