Browse Source

engine: fix discarded const pointer qualifier in PM_HullPointContents

pull/2/head
Alibek Omarov 2 years ago
parent
commit
6ac3156a82
  1. 2
      engine/client/cl_pmove.c
  2. 2
      engine/common/pm_local.h
  3. 2
      engine/common/pm_trace.c
  4. 2
      engine/server/sv_pmove.c

2
engine/client/cl_pmove.c

@ -790,7 +790,7 @@ void CL_InitClientMove( void ) @@ -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;

2
engine/common/pm_local.h

@ -36,7 +36,7 @@ hull_t *PM_HullForBsp( physent_t *pe, playermove_t *pmove, float *offset ); @@ -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 );

2
engine/common/pm_trace.c

@ -138,7 +138,7 @@ PM_HullPointContents @@ -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;

2
engine/server/sv_pmove.c

@ -491,7 +491,7 @@ void SV_InitClientMove( void ) @@ -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;

Loading…
Cancel
Save