Browse Source

engine: pmove: initialize trace argument in PM_TraceModel

pull/2/head
Alibek Omarov 3 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,
matrix4x4 matrix; matrix4x4 matrix;
hull_t *hull; hull_t *hull;
PM_InitTrace( trace, end );
old_usehull = clgame.pmove->usehull; old_usehull = clgame.pmove->usehull;
clgame.pmove->usehull = 2; 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,
matrix4x4 matrix; matrix4x4 matrix;
hull_t *hull; hull_t *hull;
PM_InitTrace( trace, end );
old_usehull = svgame.pmove->usehull; old_usehull = svgame.pmove->usehull;
svgame.pmove->usehull = 2; svgame.pmove->usehull = 2;

Loading…
Cancel
Save