From 20bd5f5185559d8a076ffed26c574b367d6f563a Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 18 Mar 2010 03:45:40 +0000 Subject: [PATCH] make q3 shader settings work on dedicated servers (dpmeshcollisions for example) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10056 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/model_brush.c b/model_brush.c index a5bf318b..d371c7df 100644 --- a/model_brush.c +++ b/model_brush.c @@ -4281,13 +4281,10 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) strlcpy (out[i].name, in[i].name, sizeof (out[i].name)); out[i].surfaceflags = LittleLong(in[i].surfaceflags); out[i].supercontents = Mod_Q3BSP_SuperContentsFromNativeContents(loadmodel, LittleLong(in[i].contents)); - if (cls.state != ca_dedicated) - { - Mod_LoadTextureFromQ3Shader(out + i, out[i].name, true, true, TEXF_MIPMAP | (r_picmipworld.integer ? TEXF_PICMIP : 0) | TEXF_COMPRESS); - // restore the surfaceflags and supercontents - out[i].surfaceflags = LittleLong(in[i].surfaceflags); - out[i].supercontents = Mod_Q3BSP_SuperContentsFromNativeContents(loadmodel, LittleLong(in[i].contents)); - } + Mod_LoadTextureFromQ3Shader(out + i, out[i].name, true, true, TEXF_MIPMAP | (r_picmipworld.integer ? TEXF_PICMIP : 0) | TEXF_COMPRESS); + // restore the surfaceflags and supercontents + out[i].surfaceflags = LittleLong(in[i].surfaceflags); + out[i].supercontents = Mod_Q3BSP_SuperContentsFromNativeContents(loadmodel, LittleLong(in[i].contents)); } } -- 2.39.2