summaryrefslogtreecommitdiffstats
path: root/battlestar/fly.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-05-02 12:50:43 +0000
committerCameron Katri <me@cameronkatri.com>2021-05-05 14:56:21 -0400
commit1c75ca2e2dc72d118edbb854455e602d70d80a52 (patch)
treea815eb983fa15e7c407095122e37acb90093be9a /battlestar/fly.c
parent2442661e769456700d67fac92056d18b3046633e (diff)
downloadbsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.gz
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.zst
bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.zip
games: remove trailing whitespace in *.c and *.h
Diffstat (limited to 'battlestar/fly.c')
-rw-r--r--battlestar/fly.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/battlestar/fly.c b/battlestar/fly.c
index 85175b6f..6277def6 100644
--- a/battlestar/fly.c
+++ b/battlestar/fly.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fly.c,v 1.15 2012/10/13 19:58:53 dholland Exp $ */
+/* $NetBSD: fly.c,v 1.16 2021/05/02 12:50:43 rillig Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: fly.c,v 1.15 2012/10/13 19:58:53 dholland Exp $");
+__RCSID("$NetBSD: fly.c,v 1.16 2021/05/02 12:50:43 rillig Exp $");
#endif
#endif /* not lint */
@@ -151,7 +151,7 @@ visual(void)
if (torps) {
torps -= 2;
blast();
- if (row == MIDR && column < MIDC + 2 &&
+ if (row == MIDR && column < MIDC + 2 &&
column > MIDC - 2) {
destroyed = 1;
alarm(0);
@@ -265,7 +265,7 @@ moveenemy(int dummy __unused)
fuel = 0;
mvaddstr(0, 60, "*** Out of fuel ***");
}
- d = (double) ((row - MIDR) * (row - MIDR) + (column - MIDC) *
+ d = (double) ((row - MIDR) * (row - MIDR) + (column - MIDC) *
(column - MIDC));
if (d < 16) {
row += (rnd(9) - 4) % (4 - abs(row - MIDR));