summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-06-02 04:28:40 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-06-02 04:28:40 +0000
commit956c4cc8d24b738dd5d6c5948947aaa1acfcaadf (patch)
treee0c5149a8226d8e9770326a5e561e15cdd689ee6 /games
parent7992b9522aaba8e2a4196147772c126a49056fb1 (diff)
Correct obviously exchanged labels in the "computer warpcost" output and
fix a typo in a comment; from <Ted dot Roby at gmail dot com> on tech@.
Diffstat (limited to 'games')
-rw-r--r--games/trek/computer.c4
-rw-r--r--games/trek/trek.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/games/trek/computer.c b/games/trek/computer.c
index ee0ed6ffd54..b0fe5eff2c9 100644
--- a/games/trek/computer.c
+++ b/games/trek/computer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: computer.c,v 1.9 2009/10/27 23:59:27 deraadt Exp $ */
+/* $OpenBSD: computer.c,v 1.10 2013/06/02 04:28:39 schwarze Exp $ */
/* $NetBSD: computer.c,v 1.4 1995/04/24 12:25:51 cgd Exp $ */
/*
@@ -238,7 +238,7 @@ computer(v)
warpfact = Ship.warp;
cost = (dist + 0.05) * warpfact * warpfact * warpfact;
time = Param.warptime * dist / (warpfact * warpfact);
- printf("Warp %.2f distance %.2f cost %.2f stardates %d (%d w/ shlds up) units\n",
+ printf("Warp %.2f distance %.2f stardates %.2f cost %d (%d w/ shlds up) units\n",
warpfact, dist, time, cost, cost + cost);
break;
diff --git a/games/trek/trek.h b/games/trek/trek.h
index 42ea02d1775..83a3adf1cbc 100644
--- a/games/trek/trek.h
+++ b/games/trek/trek.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: trek.h,v 1.12 2012/12/05 23:19:51 deraadt Exp $ */
+/* $OpenBSD: trek.h,v 1.13 2013/06/02 04:28:39 schwarze Exp $ */
/* $NetBSD: trek.h,v 1.3 1995/04/22 10:59:36 cgd Exp $ */
/*
@@ -54,7 +54,7 @@
/* galactic parameters */
#define NSECTS 10 /* dimensions of quadrant in sectors */
-#define NQUADS 8 /* dimension of galazy in quadrants */
+#define NQUADS 8 /* dimension of galaxy in quadrants */
#define NINHAB 32 /* number of quadrants which are inhabited */
struct quad /* definition for each quadrant */