diff --git a/engine/client/cl_pmove.c b/engine/client/cl_pmove.c index 55a234a2..3729eb47 100644 --- a/engine/client/cl_pmove.c +++ b/engine/client/cl_pmove.c @@ -790,7 +790,7 @@ void CL_InitClientMove( void ) clgame.pmove->PM_StuckTouch = pfnStuckTouch; clgame.pmove->PM_PointContents = (void*)PM_CL_PointContents; clgame.pmove->PM_TruePointContents = pfnTruePointContents; - clgame.pmove->PM_HullPointContents = PM_HullPointContents; + clgame.pmove->PM_HullPointContents = (void*)PM_HullPointContents; clgame.pmove->PM_PlayerTrace = pfnPlayerTrace; clgame.pmove->PM_TraceLine = PM_CL_TraceLine; clgame.pmove->RandomLong = COM_RandomLong; diff --git a/engine/common/pm_local.h b/engine/common/pm_local.h index b2830741..e2583e20 100644 --- a/engine/common/pm_local.h +++ b/engine/common/pm_local.h @@ -36,7 +36,7 @@ hull_t *PM_HullForBsp( physent_t *pe, playermove_t *pmove, float *offset ); qboolean PM_RecursiveHullCheck( hull_t *hull, int num, float p1f, float p2f, vec3_t p1, vec3_t p2, pmtrace_t *trace ); pmtrace_t PM_PlayerTraceExt( playermove_t *pm, vec3_t p1, vec3_t p2, int flags, int numents, physent_t *ents, int ignore_pe, pfnIgnore pmFilter ); int PM_TestPlayerPosition( playermove_t *pmove, vec3_t pos, pmtrace_t *ptrace, pfnIgnore pmFilter ); -int PM_HullPointContents( hull_t *hull, int num, vec3_t p ); +int PM_HullPointContents( hull_t *hull, int num, const vec3_t p ); int PM_TruePointContents( playermove_t *pmove, const vec3_t p ); int PM_PointContents( playermove_t *pmove, const vec3_t p ); float PM_TraceModel( playermove_t *pmove, physent_t *pe, float *start, float *end, trace_t *trace ); diff --git a/engine/common/pm_trace.c b/engine/common/pm_trace.c index 0519149b..375fc9bc 100644 --- a/engine/common/pm_trace.c +++ b/engine/common/pm_trace.c @@ -138,7 +138,7 @@ PM_HullPointContents ================== */ -int PM_HullPointContents( hull_t *hull, int num, vec3_t p ) +int PM_HullPointContents( hull_t *hull, int num, const vec3_t p ) { mplane_t *plane; diff --git a/engine/server/sv_pmove.c b/engine/server/sv_pmove.c index c8b0be0a..be0cbcb8 100644 --- a/engine/server/sv_pmove.c +++ b/engine/server/sv_pmove.c @@ -491,7 +491,7 @@ void SV_InitClientMove( void ) svgame.pmove->PM_StuckTouch = pfnStuckTouch; svgame.pmove->PM_PointContents = pfnPointContents; svgame.pmove->PM_TruePointContents = pfnTruePointContents; - svgame.pmove->PM_HullPointContents = PM_HullPointContents; + svgame.pmove->PM_HullPointContents = (void*)PM_HullPointContents; svgame.pmove->PM_PlayerTrace = pfnPlayerTrace; svgame.pmove->PM_TraceLine = pfnTraceLine; svgame.pmove->RandomLong = COM_RandomLong;