From e481e1d73edf80d70b6116cb9c4f43d04204249f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 31 Oct 2023 21:51:47 +0300 Subject: [PATCH] ref: gl: enable GL waves with r_ripple --- ref/gl/gl_warp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ref/gl/gl_warp.c b/ref/gl/gl_warp.c index 21b02150..7ba1afd7 100644 --- a/ref/gl/gl_warp.c +++ b/ref/gl/gl_warp.c @@ -790,9 +790,7 @@ void EmitWaterPolys( msurface_t *warp, qboolean reverse ) if( !warp->polys ) return; // set the current waveheight - if( r_ripple.value ) - waveHeight = 0; - else if( warp->polys->verts[0][2] >= RI.vieworg[2] ) + if( warp->polys->verts[0][2] >= RI.vieworg[2] ) waveHeight = -RI.currententity->curstate.scale; else waveHeight = RI.currententity->curstate.scale;