mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: merge PM_TraceTexture into PM_TraceTexturePmove
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user