summaryrefslogtreecommitdiff
path: root/games/battleball/patches/patch-ah
blob: bc9c43aef6ec7b4ba692f6e9c63b213268b27be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ah,v 1.2 2011/11/25 21:50:31 joerg Exp $

--- lib3d/bsppanel3d.C.orig	1999-09-03 02:25:19.000000000 +0000
+++ lib3d/bsppanel3d.C
@@ -3,10 +3,10 @@
 // it under the terms of the GNU General Public License v2 or later.
 
 
-#include <iostream.h>
+#include <iostream>
 #include "bsppanel3d.h"
 
-
+using namespace std;
 
 /***************************************************************************/
 bspPanel3d::bspPanel3d(const Polygon3f& poly, fastPts& pts,
@@ -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;
 }