engine: pmove: initialize trace argument in PM_TraceModel

This commit is contained in:
Alibek Omarov 2022-06-26 04:39:52 +03:00
parent c076f4ff8e
commit 85895c5311
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;