From: bones_was_here Date: Sat, 20 Jan 2024 17:59:01 +0000 (+1000) Subject: dedicated server: ignore mod_bsp_portalize for faster map changes X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=527d47ae60ab5592b9d934e2709155cc12142114;p=xonotic%2Fdarkplaces.git dedicated server: ignore mod_bsp_portalize for faster map changes These portals are only used by renderer features. Closes https://gitlab.com/xonotic/darkplaces/-/issues/243 Signed-off-by: bones_was_here --- diff --git a/model_brush.c b/model_brush.c index 083d0146..2c1fb455 100644 --- a/model_brush.c +++ b/model_brush.c @@ -4004,7 +4004,7 @@ void Mod_Q1BSP_Load(model_t *mod, void *buffer, void *bufferend) mod->brushq1.num_compressedpvs = 0; Mod_Q1BSP_MakeHull0(); - if (mod_bsp_portalize.integer) + if (mod_bsp_portalize.integer && cls.state != ca_dedicated) Mod_BSP_MakePortals(); mod->numframes = 2; // regular and alternate animation @@ -4935,7 +4935,7 @@ static void Mod_Q2BSP_Load(model_t *mod, void *buffer, void *bufferend) mod->brushq1.num_compressedpvs = 0; // the MakePortals code works fine on the q2bsp data as well - if (mod_bsp_portalize.integer) + if (mod_bsp_portalize.integer && cls.state != ca_dedicated) Mod_BSP_MakePortals(); mod->numframes = 0; // q2bsp animations are kind of special, frame is unbounded... @@ -7516,7 +7516,7 @@ static void Mod_Q3BSP_Load(model_t *mod, void *buffer, void *bufferend) loadmodel->brush.numsubmodels = loadmodel->brushq3.num_models; // the MakePortals code works fine on the q3bsp data as well - if (mod_bsp_portalize.integer) + if (mod_bsp_portalize.integer && cls.state != ca_dedicated) Mod_BSP_MakePortals(); // FIXME: shader alpha should replace r_wateralpha support in q3bsp