From b27bb77e356625f711b567b802c2c670003ecc14 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 15 May 2004 05:52:06 +0000 Subject: [PATCH] fix skybox loading in q3 shaders, needed to append a _ to the end of the skybox name git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4166 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/model_brush.c b/model_brush.c index 8f090d1e..13ba7884 100644 --- a/model_brush.c +++ b/model_brush.c @@ -3728,7 +3728,10 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) { out->surfaceparms = flags; if ((flags & Q3SURFACEPARM_SKY) && sky[0]) - strcpy(loadmodel->brush.skybox, sky); + { + // quake3 seems to append a _ to the skybox name, so this must do so as well + snprintf(loadmodel->brush.skybox, sizeof(loadmodel->brush.skybox), "%s_", sky); + } } } } -- 2.39.2