summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1998-09-11 12:53:28 +0000
committerhubertf <hubertf@NetBSD.org>1998-09-11 12:53:28 +0000
commitec5e11d622b04da62c04add1a34d40ba101d6d56 (patch)
tree04f3fc12ada2965b5a943d5183d561b6e3a54fa1 /atc
parent3039b8f2001e9a8bd5c172aa9de1a903e8746b18 (diff)
downloadbsdgames-darwin-ec5e11d622b04da62c04add1a34d40ba101d6d56.tar.gz
bsdgames-darwin-ec5e11d622b04da62c04add1a34d40ba101d6d56.tar.zst
bsdgames-darwin-ec5e11d622b04da62c04add1a34d40ba101d6d56.zip
better define PI, plus improve prototype (PR#5867)
Diffstat (limited to 'atc')
-rw-r--r--atc/def.h6
-rw-r--r--atc/update.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/atc/def.h b/atc/def.h
index 1290a30e..f9f6aad9 100644
--- a/atc/def.h
+++ b/atc/def.h
@@ -1,4 +1,4 @@
-/* $NetBSD: def.h,v 1.3 1995/03/21 15:03:47 cgd Exp $ */
+/* $NetBSD: def.h,v 1.4 1998/09/11 12:53:28 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -49,7 +49,9 @@
#define AUTHOR_STR "ATC - by Ed James"
-#define PI 3.14159654
+#ifndef PI
+#define PI 3.14159265358979323846
+#endif
#define LOWFUEL 15
diff --git a/atc/update.c b/atc/update.c
index ef15c705..516036ba 100644
--- a/atc/update.c
+++ b/atc/update.c
@@ -1,4 +1,4 @@
-/* $NetBSD: update.c,v 1.6 1997/10/10 02:07:34 lukem Exp $ */
+/* $NetBSD: update.c,v 1.7 1998/09/11 12:53:29 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: update.c,v 1.6 1997/10/10 02:07:34 lukem Exp $");
+__RCSID("$NetBSD: update.c,v 1.7 1998/09/11 12:53:29 hubertf Exp $");
#endif
#endif not lint
@@ -377,6 +377,7 @@ addplane()
PLANE *
findplane(n)
+ int n;
{
PLANE *pp;