summaryrefslogtreecommitdiff
path: root/games/quake2-3zb2/files/patch-q_shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/quake2-3zb2/files/patch-q_shared.c')
-rw-r--r--games/quake2-3zb2/files/patch-q_shared.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/quake2-3zb2/files/patch-q_shared.c b/games/quake2-3zb2/files/patch-q_shared.c
new file mode 100644
index 000000000000..90a1b626740e
--- /dev/null
+++ b/games/quake2-3zb2/files/patch-q_shared.c
@@ -0,0 +1,17 @@
+--- ./q_shared.c.orig Sat Dec 30 19:09:03 2006
++++ ./q_shared.c Sat Dec 30 19:09:23 2006
+@@ -326,12 +326,12 @@
+ Returns 1, 2, or 1 + 2
+ ==================
+ */
+-#if !id386
++#if !id386 || defined __unix__ || defined __sun__
+ int BoxOnPlaneSide (vec3_t emins, vec3_t emaxs, struct cplane_s *p)
+ {
+ float dist1, dist2;
+ int sides;
+-
++
+ // fast axial cases
+ if (p->type < 3)
+ {