Browse Source

engine: pmove: initialize trace argument in PM_TraceModel

pull/2/head
Alibek Omarov 2 years ago
parent
commit
85895c5311
  1. 2
      engine/client/cl_pmove.c
  2. 2
      engine/server/sv_pmove.c

2
engine/client/cl_pmove.c

@ -794,6 +794,8 @@ static float GAME_EXPORT pfnTraceModel( physent_t *pe, float *start, float *end, @@ -794,6 +794,8 @@ static float GAME_EXPORT pfnTraceModel( physent_t *pe, float *start, float *end,
matrix4x4 matrix;
hull_t *hull;
PM_InitTrace( trace, end );
old_usehull = clgame.pmove->usehull;
clgame.pmove->usehull = 2;

2
engine/server/sv_pmove.c

@ -455,6 +455,8 @@ static float GAME_EXPORT pfnTraceModel( physent_t *pe, float *start, float *end, @@ -455,6 +455,8 @@ static float GAME_EXPORT pfnTraceModel( physent_t *pe, float *start, float *end,
matrix4x4 matrix;
hull_t *hull;
PM_InitTrace( trace, end );
old_usehull = svgame.pmove->usehull;
svgame.pmove->usehull = 2;

Loading…
Cancel
Save