summaryrefslogtreecommitdiffstats
path: root/trek/phaser.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-05-24 20:39:43 +0000
committerdholland <dholland@NetBSD.org>2009-05-24 20:39:43 +0000
commitd1e529ba0fda11f991642459e66a3805a1bb06ae (patch)
tree947997b725dda22e7e601d312d6c97e7a8ea1050 /trek/phaser.c
parentf31fc2c1d85c05180f4cedad70ca7ec4eb8bb85f (diff)
downloadbsdgames-darwin-d1e529ba0fda11f991642459e66a3805a1bb06ae.tar.gz
bsdgames-darwin-d1e529ba0fda11f991642459e66a3805a1bb06ae.tar.zst
bsdgames-darwin-d1e529ba0fda11f991642459e66a3805a1bb06ae.zip
KNF: fix formatting of preprocessor directives
Diffstat (limited to 'trek/phaser.c')
-rw-r--r--trek/phaser.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/trek/phaser.c b/trek/phaser.c
index 7ac3b8b6..8931cdb5 100644
--- a/trek/phaser.c
+++ b/trek/phaser.c
@@ -1,4 +1,4 @@
-/* $NetBSD: phaser.c,v 1.11 2009/05/24 19:18:44 dholland Exp $ */
+/* $NetBSD: phaser.c,v 1.12 2009/05/24 20:39:43 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)phaser.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: phaser.c,v 1.11 2009/05/24 19:18:44 dholland Exp $");
+__RCSID("$NetBSD: phaser.c,v 1.12 2009/05/24 20:39:43 dholland Exp $");
#endif
#endif /* not lint */
@@ -45,11 +45,11 @@ __RCSID("$NetBSD: phaser.c,v 1.11 2009/05/24 19:18:44 dholland Exp $");
/* factors for phaser hits; see description below */
-# define ALPHA 3.0 /* spread */
-# define BETA 3.0 /* franf() */
-# define GAMMA 0.30 /* cos(angle) */
-# define EPSILON 150.0 /* dist ** 2 */
-# define OMEGA 10.596 /* overall scaling factor */
+#define ALPHA 3.0 /* spread */
+#define BETA 3.0 /* franf() */
+#define GAMMA 0.30 /* cos(angle) */
+#define EPSILON 150.0 /* dist ** 2 */
+#define OMEGA 10.596 /* overall scaling factor */
/* OMEGA ~= 100 * (ALPHA + 1) * (BETA + 1) / (EPSILON + 1) */
@@ -244,14 +244,14 @@ phaser(int v __unused)
b->angle = atan2(dy, dx);
b->spread = 0.0;
b->units = ((n - i) / tot) * extra;
-# ifdef xTRACE
+#ifdef xTRACE
if (Trace)
{
printf("b%d hr%d u%d df%.2f af%.2f\n",
i, hitreqd[i], b->units,
distfactor, anglefactor);
}
-# endif
+#endif
extra -= b->units;
hit = b->units - hitreqd[i];
if (hit > 0)
@@ -285,7 +285,7 @@ phaser(int v __unused)
}
}
-# ifdef xTRACE
+#ifdef xTRACE
if (Trace)
{
for (i = 0; i < NBANKS; i++)
@@ -298,7 +298,7 @@ phaser(int v __unused)
printf("\n");
}
}
-# endif
+#endif
/* actually fire the shots */
Move.free = 0;