diff options
Diffstat (limited to 'trek/move.c')
-rw-r--r-- | trek/move.c | 24 |
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); |