]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
R_SetSkyBox now takes a const char *
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Sep 2002 13:59:53 +0000 (13:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Sep 2002 13:59:53 +0000 (13:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2360 d7cf8633-e32d-0410-b094-e92efae38249

r_sky.c
render.h

diff --git a/r_sky.c b/r_sky.c
index 367428c4664d3af6330532007c878775407a0550..6ab1f25a4ba00dc4a780c94855854b9b646a20bf 100644 (file)
--- a/r_sky.c
+++ b/r_sky.c
@@ -15,7 +15,6 @@ static rtexturepool_t *skytexturepool;
 static char skyname[256];
 static char *suf[6] = {"rt", "bk", "lf", "ft", "up", "dn"};
 static rtexture_t *skyboxside[6];
-int R_SetSkyBox(char *sky);
 
 void R_SkyStartFrame(void)
 {
@@ -40,7 +39,7 @@ void R_SkyStartFrame(void)
 R_SetSkyBox
 ==================
 */
-int R_SetSkyBox(char *sky)
+int R_SetSkyBox(const char *sky)
 {
        int i;
        char name[1024];
index ab437b952a968b8558ecea4ab8df845d32af5ed4..05dcd5f77652f0b7951de1d24c04448654575989 100644 (file)
--- a/render.h
+++ b/render.h
@@ -36,7 +36,7 @@ extern float fog_density, fog_red, fog_green, fog_blue;
 // sky stuff
 extern cvar_t r_sky;
 extern int skyrendernow, skyrendermasked;
-extern int R_SetSkyBox(char* sky);
+extern int R_SetSkyBox(const char *sky);
 extern void R_SkyStartFrame(void);
 extern void R_Sky(void);
 extern void R_ResetQuakeSky(void);