From d22bbb4213f8c8bf587697249c4a117b2b19ad71 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 28 Dec 2023 22:19:34 +0300 Subject: [PATCH] ref: gl: remove usage of PARM_WORLD_VERSION --- ref/gl/gl_rsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/gl/gl_rsurf.c b/ref/gl/gl_rsurf.c index 3b539ba4..c2705495 100644 --- a/ref/gl/gl_rsurf.c +++ b/ref/gl/gl_rsurf.c @@ -3819,7 +3819,7 @@ void GL_BuildLightmaps( void ) // update the lightmap blocksize if( FBitSet( ENGINE_GET_PARM( PARM_FEATURES ), ENGINE_LARGE_LIGHTMAPS ) - || ENGINE_GET_PARM( PARM_WORLD_VERSION ) == QBSP2_VERSION ) + || tr.world->version == QBSP2_VERSION ) tr.block_size = BLOCK_SIZE_MAX; else tr.block_size = BLOCK_SIZE_DEFAULT;