From 308e9756d6f2b7d465af540c793db9b50a09789e Mon Sep 17 00:00:00 2001 From: branch-fixup Date: Fri, 26 Mar 2004 01:34:08 +0000 Subject: [PATCH] Add files from parent branch HEAD: games/xevil/patches/patch-ad games/xevil/patches/patch-ae games/xevil/patches/patch-af --- games/xevil/patches/patch-ad | 21 +++++++++++++++++++++ games/xevil/patches/patch-ae | 29 +++++++++++++++++++++++++++++ games/xevil/patches/patch-af | 22 ++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 games/xevil/patches/patch-ad create mode 100644 games/xevil/patches/patch-ae create mode 100644 games/xevil/patches/patch-af diff --git a/games/xevil/patches/patch-ad b/games/xevil/patches/patch-ad new file mode 100644 index 000000000000..5217865e11a2 --- /dev/null +++ b/games/xevil/patches/patch-ad @@ -0,0 +1,21 @@ +$NetBSD$ + +--- 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; + diff --git a/games/xevil/patches/patch-ae b/games/xevil/patches/patch-ae new file mode 100644 index 000000000000..01e7b2b2854c --- /dev/null +++ b/games/xevil/patches/patch-ae @@ -0,0 +1,29 @@ +$NetBSD$ + +--- physical.C.orig Fri Mar 26 02:15:18 2004 ++++ physical.C Fri Mar 26 02:16:06 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 "physical.h" +@@ -29,13 +30,14 @@ + + + // Include Files +-#include ++#include + + extern "C" { + #include + } + +-#include ++#include ++using std::ostrstream; + + #include "utils.h" + #include "coord.h" diff --git a/games/xevil/patches/patch-af b/games/xevil/patches/patch-af new file mode 100644 index 000000000000..4ccf0a160f8d --- /dev/null +++ b/games/xevil/patches/patch-af @@ -0,0 +1,22 @@ +$NetBSD$ + +--- ui.C.orig Fri Mar 26 02:21:44 2004 ++++ ui.C Fri Mar 26 02:22:21 2004 +@@ -23,6 +23,7 @@ + hardts@alum.mit.edu + http://graphics.lcs.mit.edu/~hardts/xevil.html + */ ++using namespace std; + + #ifndef NO_PRAGMAS + #pragma implementation "ui.h" +@@ -42,7 +43,8 @@ + } + + #include +-#include ++#include ++using std::ostrstream; + + #include "coord.h" + #include "ui.h" -- 2.41.0