summaryrefslogtreecommitdiffstats
path: root/games/sail/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/sail/misc.c')
-rw-r--r--games/sail/misc.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/games/sail/misc.c b/games/sail/misc.c
index 256425d4..56dc3c2 100644
--- a/games/sail/misc.c
+++ b/games/sail/misc.c
@@ -46,9 +46,9 @@ static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
range(from, to)
struct ship *from, *to;
{
- register bow1r, bow1c, bow2r, bow2c;
+ bow1r, bow1c, bow2r, bow2c;
int stern1r, stern1c, stern2c, stern2r;
- register int bb, bs, sb, ss, result;
+ int bb, bs, sb, ss, result;
if (!to->file->dir)
return -1;
@@ -72,11 +72,11 @@ struct ship *from, *to;
struct ship *
closestenemy(from, side, anyship)
-register struct ship *from;
+struct ship *from;
char side, anyship;
{
- register struct ship *sp;
- register char a;
+ struct ship *sp;
+ char a;
int olddist = 30000, dist;
struct ship *closest = 0;
@@ -100,9 +100,9 @@ char side, anyship;
}
angle(dr, dc)
-register dr, dc;
+dr, dc;
{
- register i;
+ i;
if (dc >= 0 && dr > 0)
i = 0;
@@ -127,10 +127,10 @@ register dr, dc;
}
gunsbear(from, to) /* checks for target bow or stern */
-register struct ship *from, *to;
+struct ship *from, *to;
{
int Dr, Dc, i;
- register ang;
+ ang;
Dr = from->file->row - to->file->row;
Dc = to->file->col - from->file->col;
@@ -148,11 +148,11 @@ register struct ship *from, *to;
}
portside(from, on, quick)
-register struct ship *from, *on;
+struct ship *from, *on;
int quick; /* returns true if fromship is */
{ /* shooting at onship's starboard side */
- register ang;
- register Dr, Dc;
+ ang;
+ Dr, Dc;
Dr = from->file->row - on->file->row;
Dc = on->file->col - from->file->col;
@@ -168,9 +168,9 @@ int quick; /* returns true if fromship is */
}
colours(sp)
-register struct ship *sp;
+struct ship *sp;
{
- register char flag;
+ char flag;
if (sp->file->struck)
flag = '!';
@@ -186,14 +186,14 @@ register struct ship *sp;
#include <sys/file.h>
log(s)
-register struct ship *s;
+struct ship *s;
{
FILE *fp;
int persons;
int n;
struct logs log[NLOG];
float net;
- register struct logs *lp;
+ struct logs *lp;
if ((fp = fopen(_PATH_LOGFILE, "r+")) == NULL)
return;
OpenPOWER on IntegriCloud