From: res Date: Tue, 18 Dec 2007 23:31:38 +0000 (+0000) Subject: Marked some sky tables as "static const" X-Git-Tag: xonotic-v0.1.0preview~2669 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=97933242e08292321f3c8d688dcee835bbce976b;p=xonotic%2Fdarkplaces.git Marked some sky tables as "static const" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7822 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_sky.c b/r_sky.c index b870bdaa..d897fe39 100644 --- 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,