mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-12-12 18:45:36 +00:00
render: pass currententity down to R_ZDrawSubmodelPolys
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
8af4338acf
commit
dd796af5e4
@ -805,7 +805,7 @@ R_ZDrawSubmodelPolys
|
||||
================
|
||||
*/
|
||||
void
|
||||
R_ZDrawSubmodelPolys(model_t *pmodel)
|
||||
R_ZDrawSubmodelPolys(entity_t *e, model_t *pmodel)
|
||||
{
|
||||
int i, numsurfaces;
|
||||
msurface_t *psurf;
|
||||
@ -825,7 +825,7 @@ R_ZDrawSubmodelPolys(model_t *pmodel)
|
||||
if (((psurf->flags & SURF_PLANEBACK) && (dot < -BACKFACE_EPSILON)) ||
|
||||
(!(psurf->flags & SURF_PLANEBACK) && (dot > BACKFACE_EPSILON))) {
|
||||
// FIXME: use bounding-box-based frustum clipping info?
|
||||
R_RenderPoly(currententity, psurf, 15);
|
||||
R_RenderPoly(e, psurf, 15);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -852,7 +852,7 @@ R_DrawBEntitiesOnList(void)
|
||||
// on at this point, so no clipping to the world tree is
|
||||
// needed, just frustum clipping
|
||||
if (r_drawpolys | r_drawculledpolys) {
|
||||
R_ZDrawSubmodelPolys(clmodel);
|
||||
R_ZDrawSubmodelPolys(e, clmodel);
|
||||
} else {
|
||||
r_pefragtopnode = NULL;
|
||||
|
||||
|
@ -192,7 +192,7 @@ typedef struct btofpoly_s {
|
||||
extern int numbtofpolys;
|
||||
extern btofpoly_t *pbtofpolys;
|
||||
|
||||
void R_ZDrawSubmodelPolys(model_t *clmodel);
|
||||
void R_ZDrawSubmodelPolys(entity_t *e, model_t *clmodel);
|
||||
|
||||
//=========================================================
|
||||
// Alias models
|
||||
|
Loading…
Reference in New Issue
Block a user