From: havoc Date: Sat, 15 May 2004 05:52:06 +0000 (+0000) Subject: fix skybox loading in q3 shaders, needed to append a _ to the end of the skybox name X-Git-Tag: xonotic-v0.1.0preview~5883 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b27bb77e356625f711b567b802c2c670003ecc14;p=xonotic%2Fdarkplaces.git 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 --- 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); + } } } }