diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index f88ce4af..9982b958 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -76,7 +76,7 @@ static CVAR_DEFINE_AUTO( cl_upmax, "1200", FCVAR_ARCHIVE, "max allowed incoming CVAR_DEFINE_AUTO( cl_lw, "1", FCVAR_ARCHIVE|FCVAR_USERINFO, "enable client weapon predicting" ); CVAR_DEFINE_AUTO( cl_charset, "utf-8", FCVAR_ARCHIVE, "1-byte charset to use (iconv style)" ); -CVAR_DEFINE_AUTO( cl_trace_stufftext, "0", FCVAR_ARCHIVE|FCVAR_CHEAT, "enable stufftext (server-to-client console commands) tracing (good for developers)" ); +CVAR_DEFINE_AUTO( cl_trace_stufftext, "0", FCVAR_ARCHIVE, "enable stufftext (server-to-client console commands) tracing (good for developers)" ); CVAR_DEFINE_AUTO( cl_trace_messages, "0", FCVAR_ARCHIVE|FCVAR_CHEAT, "enable message names tracing (good for developers)" ); CVAR_DEFINE_AUTO( cl_trace_events, "0", FCVAR_ARCHIVE|FCVAR_CHEAT, "enable events tracing (good for developers)" ); static CVAR_DEFINE_AUTO( cl_nat, "0", 0, "show servers running under NAT" ); @@ -650,7 +650,7 @@ static void CL_CreateCmd( void ) active = (( cls.signon == SIGNONS ) && !cl.paused && !cls.demoplayback ); Platform_PreCreateMove(); clgame.dllFuncs.CL_CreateMove( host.frametime, cmd, active ); - IN_EngineAppendMove( host.frametime, cmd, active ); + IN_EngineAppendMove( host.frametime, cmd, active ); CL_PopPMStates(); diff --git a/engine/client/input.c b/engine/client/input.c index 0a51b12e..8e3d2c29 100644 --- a/engine/client/input.c +++ b/engine/client/input.c @@ -569,10 +569,9 @@ IN_EngineAppendMove Called from cl_main.c after generating command in client ================ */ -void IN_EngineAppendMove( float frametime, void *cmd1, qboolean active ) +void IN_EngineAppendMove( float frametime, usercmd_t *cmd, qboolean active ) { float forward, side, pitch, yaw; - usercmd_t *cmd = cmd1; if( clgame.dllFuncs.pfnLookEvent ) return; diff --git a/engine/client/input.h b/engine/client/input.h index 5ab99a0b..0864d887 100644 --- a/engine/client/input.h +++ b/engine/client/input.h @@ -25,6 +25,7 @@ INPUT */ #include "keydefs.h" +#include "usercmd.h" // // input.c @@ -43,7 +44,7 @@ void IN_ToggleClientMouse( int newstate, int oldstate ); uint IN_CollectInputDevices( void ); void IN_LockInputDevices( qboolean lock ); -void IN_EngineAppendMove( float frametime, void *cmd, qboolean active ); +void IN_EngineAppendMove( float frametime, usercmd_t *cmd, qboolean active ); extern convar_t m_yaw; extern convar_t m_pitch;