engine: merge PM_TraceTexture into PM_TraceTexturePmove

This commit is contained in:
Alibek Omarov
2023-01-05 23:59:31 +03:00
parent 4cb109abe0
commit e305b81df0
5 changed files with 12 additions and 24 deletions

View File

@@ -214,24 +214,6 @@ msurface_t *PM_TraceSurface( physent_t *pe, vec3_t start, vec3_t end )
return PM_RecursiveSurfCheck( bmodel, &bmodel->nodes[hull->firstclipnode], start_l, end_l );
}
/*
==================
PM_TraceTexture
find the face where the traceline hit
assume physentity is valid
==================
*/
const char *PM_TraceTexture( physent_t *pe, vec3_t start, vec3_t end )
{
msurface_t *surf = PM_TraceSurface( pe, start, end );
if( !surf || !surf->texinfo || !surf->texinfo->texture )
return NULL;
return surf->texinfo->texture->name;
}
/*
==================
PM_TestLine_r