summaryrefslogtreecommitdiffstats
path: root/games/bs
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
commit30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (patch)
tree4d8ac7e75ac179a918a76def244de6e3f3314e76 /games/bs
parent188803394908f222ab3ed8ec32331eb6dd00fd2d (diff)
downloadFreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.zip
FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'games/bs')
-rw-r--r--games/bs/bs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/games/bs/bs.c b/games/bs/bs.c
index 3785fcd..f28d4c7 100644
--- a/games/bs/bs.c
+++ b/games/bs/bs.c
@@ -1,4 +1,4 @@
-/*
+/*
* bs.c - original author: Bruce Holloway
* salvo option by: Chuck A DeGaul
* with improved user interface, autoconfiguration and code cleanup
@@ -260,7 +260,7 @@ static void intro()
init_pair(COLOR_YELLOW, COLOR_YELLOW, COLOR_BLACK);
#endif /* A_COLOR */
-}
+}
/* VARARGS1 */
static void prompt(n, f, s)
@@ -468,7 +468,7 @@ static void initgame()
placeship(PLAYER, ss, TRUE);
error((char *)NULL);
ss->placed = TRUE;
- }
+ }
else if (c == 'R')
{
prompt(1, "Placing the rest of your fleet at random...");
@@ -480,7 +480,7 @@ static void initgame()
ss->placed = TRUE;
}
error((char *)NULL);
- }
+ }
else if (strchr("hjkl8462", c))
{
ss->x = curx;
@@ -492,7 +492,7 @@ static void initgame()
case 'j': case '2': ss->dir = S; break;
case 'h': case '4': ss->dir = W; break;
case 'l': case '6': ss->dir = E; break;
- }
+ }
if (checkplace(PLAYER, ss, TRUE))
{
@@ -744,7 +744,7 @@ int x, y;
for (i = -1; i <= ss->length; ++i)
{
int x, y;
-
+
x = bx + i * xincr[ss->dir];
y = by + i * yincr[ss->dir];
if (ONBOARD(x, y))
@@ -1236,7 +1236,7 @@ char *argv[];
i = 0;
}
}
- }
+ }
}
else
while(turn ? cputurn() : plyturn())
OpenPOWER on IntegriCloud