aboutsummaryrefslogtreecommitdiffstats
path: root/games/q3cellshading
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2006-12-18 02:16:39 +0800
committeralepulver <alepulver@FreeBSD.org>2006-12-18 02:16:39 +0800
commit8ec55361d4b948cf96e48010c74d4a1d9c412445 (patch)
tree7d31d4029680de0fb1f967c0b2aac69333dd4ad5 /games/q3cellshading
parent60f3c250c2d1151ae2336d7b56833d14441e09a4 (diff)
downloadfreebsd-ports-gnome-8ec55361d4b948cf96e48010c74d4a1d9c412445.tar.gz
freebsd-ports-gnome-8ec55361d4b948cf96e48010c74d4a1d9c412445.tar.zst
freebsd-ports-gnome-8ec55361d4b948cf96e48010c74d4a1d9c412445.zip
- Fix building with GCC 4.x.
Reported by: pointyhat
Diffstat (limited to 'games/q3cellshading')
-rw-r--r--games/q3cellshading/files/patch-code__renderer__tr_light.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/games/q3cellshading/files/patch-code__renderer__tr_light.c b/games/q3cellshading/files/patch-code__renderer__tr_light.c
new file mode 100644
index 000000000000..d1de6d2257ae
--- /dev/null
+++ b/games/q3cellshading/files/patch-code__renderer__tr_light.c
@@ -0,0 +1,36 @@
+--- ./code/renderer/tr_light.c.orig Tue Jul 18 17:53:12 2006
++++ ./code/renderer/tr_light.c Sun Dec 17 13:16:04 2006
+@@ -222,21 +222,21 @@
+ // decode Y as sin( lat ) * sin( long )
+ // decode Z as cos( long )
+
+- (int)ent->ambientLight[0] /= (int)10;
+- (int)ent->ambientLight[1] /= (int)10;
+- (int)ent->ambientLight[2] /= (int)10;
++ ent->ambientLight[0] /= (int)10;
++ ent->ambientLight[1] /= (int)10;
++ ent->ambientLight[2] /= (int)10;
+
+- (int)ent->directedLight[0] /= (int)10;
+- (int)ent->directedLight[1] /= (int)10;
+- (int)ent->directedLight[2] /= (int)10;
++ ent->directedLight[0] /= (int)10;
++ ent->directedLight[1] /= (int)10;
++ ent->directedLight[2] /= (int)10;
+
+- (int)ent->ambientLight[0] *= (int)10;
+- (int)ent->ambientLight[1] *= (int)10;
+- (int)ent->ambientLight[2] *= (int)10;
++ ent->ambientLight[0] *= (int)10;
++ ent->ambientLight[1] *= (int)10;
++ ent->ambientLight[2] *= (int)10;
+
+- (int)ent->directedLight[0] *= (int)10;
+- (int)ent->directedLight[1] *= (int)10;
+- (int)ent->directedLight[2] *= (int)10;
++ ent->directedLight[0] *= (int)10;
++ ent->directedLight[1] *= (int)10;
++ ent->directedLight[2] *= (int)10;
+
+
+ normal[0] = tr.sinTable[(lat+(FUNCTABLE_SIZE/4))&FUNCTABLE_MASK] * tr.sinTable[lng];