summaryrefslogtreecommitdiffstats
path: root/trek/move.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/move.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/move.c')
-rw-r--r--trek/move.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/trek/move.c b/trek/move.c
index 912be9d3..2b772821 100644
--- a/trek/move.c
+++ b/trek/move.c
@@ -1,4 +1,4 @@
-/* $NetBSD: move.c,v 1.7 2009/05/24 19:18:44 dholland Exp $ */
+/* $NetBSD: move.c,v 1.8 2009/05/24 20:39:43 dholland Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: move.c,v 1.7 2009/05/24 19:18:44 dholland Exp $");
+__RCSID("$NetBSD: move.c,v 1.8 2009/05/24 20:39:43 dholland Exp $");
#endif
#endif /* not lint */
@@ -91,11 +91,11 @@ move(int ramflag, int course, double time, double speed)
double xn;
double evtime;
-# ifdef xTRACE
+#ifdef xTRACE
if (Trace)
printf("move: ramflag %d course %d time %.2f speed %.2f\n",
ramflag, course, time, speed);
-# endif
+#endif
sectsize = NSECTS;
/* initialize delta factors for move */
angle = course * 0.0174532925;
@@ -116,12 +116,12 @@ move(int ramflag, int course, double time, double speed)
/* check for long range tractor beams */
/**** TEMPORARY CODE == DEBUGGING ****/
evtime = Now.eventptr[E_LRTB]->date - Now.date;
-# ifdef xTRACE
+#ifdef xTRACE
if (Trace)
printf("E.ep = %p, ->evcode = %d, ->date = %.2f, evtime = %.2f\n",
Now.eventptr[E_LRTB], Now.eventptr[E_LRTB]->evcode,
Now.eventptr[E_LRTB]->date, evtime);
-# endif
+#endif
if (time > evtime && Etc.nkling < 3)
{
/* then we got a LRTB */
@@ -138,20 +138,20 @@ move(int ramflag, int course, double time, double speed)
y = Ship.secty + 0.5;
xn = NSECTS * dist * bigger;
n = xn + 0.5;
-# ifdef xTRACE
+#ifdef xTRACE
if (Trace)
printf("dx = %.2f, dy = %.2f, xn = %.2f, n = %d\n", dx, dy, xn, n);
-# endif
+#endif
Move.free = 0;
for (i = 0; i < n; i++)
{
ix = (x += dx);
iy = (y += dy);
-# ifdef xTRACE
+#ifdef xTRACE
if (Trace)
printf("ix = %d, x = %.2f, iy = %d, y = %.2f\n", ix, x, iy, y);
-# endif
+#endif
if (x < 0.0 || y < 0.0 || x >= sectsize || y >= sectsize)
{
/* enter new quadrant */
@@ -165,10 +165,10 @@ move(int ramflag, int course, double time, double speed)
iy = -1;
else
iy = dy + 0.5;
-# ifdef xTRACE
+#ifdef xTRACE
if (Trace)
printf("New quad: ix = %d, iy = %d\n", ix, iy);
-# endif
+#endif
Ship.sectx = x;
Ship.secty = y;
compkldist(0);