]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix skybox loading in q3 shaders, needed to append a _ to the end of the skybox name
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 May 2004 05:52:06 +0000 (05:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 May 2004 05:52:06 +0000 (05:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4166 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 8f090d1e2135489e0939aea8cc814b93084b474b..13ba78848f3d99f64a6fc44c24a30e825ddb0060 100644 (file)
@@ -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);
+                                                               }
                                                        }
                                                }
                                        }