summaryrefslogtreecommitdiff
path: root/games/xevil/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'games/xevil/patches/patch-ad')
-rw-r--r--games/xevil/patches/patch-ad21
1 files changed, 21 insertions, 0 deletions
diff --git a/games/xevil/patches/patch-ad b/games/xevil/patches/patch-ad
new file mode 100644
index 00000000000..fb2e39dff08
--- /dev/null
+++ b/games/xevil/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.1 2004/03/26 01:34:08 kristerw Exp $
+
+--- locator.C.orig Fri Mar 26 02:20:24 2004
++++ locator.C Fri Mar 26 02:21:09 2004
+@@ -22,6 +22,7 @@
+ hardts@alum.mit.edu
+ http://graphics.lcs.mit.edu/~hardts/xevil.html
+ */
++using namespace std;
+
+ #ifndef NO_PRAGMAS
+ #pragma implementation "locator.h"
+@@ -210,7 +211,7 @@
+ void Locator::get_nearby(PhysicalP nearby[OL_NEARBY_MAX],int &nitems,
+ PhysicalP p,int radius)
+ {
+- int glocRadius = (int)ceil(radius / OL_GRID_SIZE_MAX);
++ int glocRadius = (int)ceil((float)(radius / OL_GRID_SIZE_MAX));
+ int radius_2 = radius * radius;
+ nitems = 0;
+