diff options
Diffstat (limited to 'games/battleball/patches')
-rw-r--r-- | games/battleball/patches/patch-ae | 13 | ||||
-rw-r--r-- | games/battleball/patches/patch-af | 13 | ||||
-rw-r--r-- | games/battleball/patches/patch-ag | 13 | ||||
-rw-r--r-- | games/battleball/patches/patch-ah | 13 | ||||
-rw-r--r-- | games/battleball/patches/patch-ai | 13 |
5 files changed, 65 insertions, 0 deletions
diff --git a/games/battleball/patches/patch-ae b/games/battleball/patches/patch-ae new file mode 100644 index 00000000000..1ef3b563fcc --- /dev/null +++ b/games/battleball/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1 2008/06/21 18:12:42 joerg Exp $ + +--- bsp/bsp.C.orig 2008-06-21 12:05:00.000000000 +0000 ++++ bsp/bsp.C +@@ -1205,7 +1205,7 @@ void bsp_printf(BSP *t,int level) { + printf("bad_neg_parent "); + + for (i=0; i<t->numpolys; i++) +- printf("%ld ", (t->polys[i]->material_index) % 100000); ++ printf("%ld ", (long)(t->polys[i]->material_index) % 100000); + + if (t->positive) + if (t->negative) diff --git a/games/battleball/patches/patch-af b/games/battleball/patches/patch-af new file mode 100644 index 00000000000..e08c34945da --- /dev/null +++ b/games/battleball/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1 2008/06/21 18:12:42 joerg Exp $ + +--- bsp/polygon.C.orig 2008-06-21 12:05:25.000000000 +0000 ++++ bsp/polygon.C +@@ -130,7 +130,7 @@ void + PolygonPrint3f(FILE *fp, Polygon3f *p) + { + int i; +- fprintf(fp, "numverts=%d material_index=%d\n", p->numverts, p->material_index); ++ fprintf(fp, "numverts=%d material_index=%p\n", p->numverts, p->material_index); + for (i = 0; i < p->numverts; i++) + fprintf(fp, "%f %f %f\n", + p->verts[i][0], p->verts[i][1], p->verts[i][2]); diff --git a/games/battleball/patches/patch-ag b/games/battleball/patches/patch-ag new file mode 100644 index 00000000000..0da8688d8aa --- /dev/null +++ b/games/battleball/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1 2008/06/21 18:12:42 joerg Exp $ + +--- bsp/polygon.h.orig 2008-06-21 12:04:08.000000000 +0000 ++++ bsp/polygon.h +@@ -21,7 +21,7 @@ typedef struct { + int numverts; + Vec3f verts[MAXPOLYVERT]; + Vec3f plane_normal; +- int material_index; ++ void *material_index; + int facesForward; // true: faces same dir as BSP node's plane faces + } Polygon3f; + diff --git a/games/battleball/patches/patch-ah b/games/battleball/patches/patch-ah new file mode 100644 index 00000000000..f09a15023d1 --- /dev/null +++ b/games/battleball/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 2008/06/21 18:12:42 joerg Exp $ + +--- lib3d/bsppanel3d.C.orig 2008-06-21 12:05:40.000000000 +0000 ++++ lib3d/bsppanel3d.C +@@ -42,7 +42,7 @@ Polygon3f bspPanel3d::asPolygon3f(pt3d p + } + + pt3d2Vec3f(normal,poly.plane_normal); +- poly.material_index= (int) this; ++ poly.material_index= this; + return poly; + } + diff --git a/games/battleball/patches/patch-ai b/games/battleball/patches/patch-ai new file mode 100644 index 00000000000..e8b0dca6ab3 --- /dev/null +++ b/games/battleball/patches/patch-ai @@ -0,0 +1,13 @@ +$NetBSD: patch-ai,v 1.1 2008/06/21 18:12:42 joerg Exp $ + +--- lib3d/bspregion3d.C.orig 2008-06-21 12:06:10.000000000 +0000 ++++ lib3d/bspregion3d.C +@@ -97,7 +97,7 @@ void bspRegion3d::MakeBspTreePanels(BSP + xpanel3d& panel= * (xpanel3d *) poly->material_index; + + poly->material_index= +- (int) & *treePanels.insert(treePanels.end(),xpanel3d(*poly,pts,panel)); ++ & *treePanels.insert(treePanels.end(),xpanel3d(*poly,pts,panel)); + } + MakeBspTreePanels(bspt->negative); + MakeBspTreePanels(bspt->positive); |