diff options
Diffstat (limited to 'games/trek/dumpme.c')
-rw-r--r-- | games/trek/dumpme.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/games/trek/dumpme.c b/games/trek/dumpme.c index dfb38f0875e..3b2dc13b11d 100644 --- a/games/trek/dumpme.c +++ b/games/trek/dumpme.c @@ -1,3 +1,4 @@ +/* $OpenBSD: dumpme.c,v 1.2 1998/08/19 07:41:30 pjanzen Exp $ */ /* $NetBSD: dumpme.c,v 1.3 1995/04/22 10:58:48 cgd Exp $ */ /* @@ -37,11 +38,12 @@ #if 0 static char sccsid[] = "@(#)dumpme.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: dumpme.c,v 1.3 1995/04/22 10:58:48 cgd Exp $"; +static char rcsid[] = "$OpenBSD: dumpme.c,v 1.2 1998/08/19 07:41:30 pjanzen Exp $"; #endif #endif /* not lint */ -# include "trek.h" +#include <stdio.h> +#include "trek.h" /* ** Dump the starship somewhere in the galaxy @@ -55,8 +57,9 @@ static char rcsid[] = "$NetBSD: dumpme.c,v 1.3 1995/04/22 10:58:48 cgd Exp $"; ** Repair of devices must be deferred. */ +void dumpme(flag) -int flag; + int flag; { register int f; double x; @@ -68,7 +71,7 @@ int flag; Ship.quady = ranf(NQUADS); Ship.sectx = ranf(NSECTS); Ship.secty = ranf(NSECTS); - x += 1.5 * franf(); + x = 1.5 * franf(); Move.time += x; if (f) { |