From 0e8143aefcdd55154dd1c52bf8a6d5c2973367e4 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 8 Apr 2026 08:02:44 +0500 Subject: [PATCH] ref: gl: remove duplicate line from if-else branches in R_MarkLeaves --- ref/gl/gl_rsurf.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ref/gl/gl_rsurf.c b/ref/gl/gl_rsurf.c index e16a0abb..e50b6faa 100644 --- a/ref/gl/gl_rsurf.c +++ b/ref/gl/gl_rsurf.c @@ -3705,15 +3705,11 @@ void R_MarkLeaves( void ) { // merge two leafs that can be a crossed-line contents if( RI.viewleaf->contents == CONTENTS_EMPTY ) - { VectorSet( test, RI.pvsorigin[0], RI.pvsorigin[1], RI.pvsorigin[2] - 16.0f ); - leaf = gEngfuncs.Mod_PointInLeaf( test, WORLDMODEL->nodes ); - } else - { VectorSet( test, RI.pvsorigin[0], RI.pvsorigin[1], RI.pvsorigin[2] + 16.0f ); - leaf = gEngfuncs.Mod_PointInLeaf( test, WORLDMODEL->nodes ); - } + + leaf = gEngfuncs.Mod_PointInLeaf( test, WORLDMODEL->nodes ); if(( leaf->contents != CONTENTS_SOLID ) && ( RI.viewleaf != leaf )) force = true;