mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
ref_soft: Ignore non-horizontal water planes
This commit is contained in:
parent
ebd1da2730
commit
e0cd5edddb
14
r_bsp.c
14
r_bsp.c
@ -663,6 +663,13 @@ void R_DrawSolidClippedSubmodelPolygons (model_t *pmodel, mnode_t *topnode)
|
|||||||
|
|
||||||
for (i=0 ; i<numsurfaces ; i++, psurf++)
|
for (i=0 ; i<numsurfaces ; i++, psurf++)
|
||||||
{
|
{
|
||||||
|
if( FBitSet( psurf->flags, SURF_DRAWTURB ) && !ENGINE_GET_PARM( PARM_QUAKE_COMPATIBLE ))
|
||||||
|
{
|
||||||
|
if( psurf->plane->type != PLANE_Z && !FBitSet( RI.currententity->curstate.effects, EF_WATERSIDES ))
|
||||||
|
continue;
|
||||||
|
if( r_entorigin[2] + pmodel->mins[2] + 1.0 >= psurf->plane->dist )
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// find which side of the node we are on
|
// find which side of the node we are on
|
||||||
pplane = psurf->plane;
|
pplane = psurf->plane;
|
||||||
|
|
||||||
@ -738,6 +745,13 @@ void R_DrawSubmodelPolygons (model_t *pmodel, int clipflags, mnode_t *topnode)
|
|||||||
|
|
||||||
for (i=0 ; i<numsurfaces ; i++, psurf++)
|
for (i=0 ; i<numsurfaces ; i++, psurf++)
|
||||||
{
|
{
|
||||||
|
if( FBitSet( psurf->flags, SURF_DRAWTURB ) && !ENGINE_GET_PARM( PARM_QUAKE_COMPATIBLE ))
|
||||||
|
{
|
||||||
|
if( psurf->plane->type != PLANE_Z && !FBitSet( RI.currententity->curstate.effects, EF_WATERSIDES ))
|
||||||
|
continue;
|
||||||
|
if( r_entorigin[2] + pmodel->mins[2] + 1.0 >= psurf->plane->dist )
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// find which side of the node we are on
|
// find which side of the node we are on
|
||||||
pplane = psurf->plane;
|
pplane = psurf->plane;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user