]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Marked some sky tables as "static const"
authorres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Dec 2007 23:31:38 +0000 (23:31 +0000)
committerres <res@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 18 Dec 2007 23:31:38 +0000 (23:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7822 d7cf8633-e32d-0410-b094-e92efae38249

r_sky.c

diff --git a/r_sky.c b/r_sky.c
index b870bdaaf83ef9fe362b9859df3e8c252d1c2c81..d897fe398331191a7bdac4543ebb9423347b25b3 100644 (file)
--- a/r_sky.c
+++ b/r_sky.c
@@ -16,11 +16,11 @@ static char skyname[MAX_QPATH];
 
 typedef struct suffixinfo_s
 {
-       char *suffix;
+       const char *suffix;
        qboolean flipx, flipy, flipdiagonal;
 }
 suffixinfo_t;
-static suffixinfo_t suffix[3][6] =
+static const suffixinfo_t suffix[3][6] =
 {
        {
                {"px",   false, false, false},
@@ -175,7 +175,7 @@ void LoadSky_f (void)
        }
 }
 
-float skyboxvertex3f[6*4*3] =
+static const float skyboxvertex3f[6*4*3] =
 {
        // skyside[0]
         16, -16,  16,
@@ -209,7 +209,7 @@ float skyboxvertex3f[6*4*3] =
         16,  16, -16
 };
 
-float skyboxtexcoord2f[6*4*2] =
+static const float skyboxtexcoord2f[6*4*2] =
 {
        // skyside[0]
        0, 1,
@@ -243,7 +243,7 @@ float skyboxtexcoord2f[6*4*2] =
        0, 0
 };
 
-int skyboxelements[6*2*3] =
+static const int skyboxelements[6*2*3] =
 {
        // skyside[3]
         0,  1,  2,