diff options
author | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2012-06-19 05:30:43 +0000 |
commit | 60030fd11e6c646dbc35c5254b2520d5af45288f (patch) | |
tree | 2d9c57e3deb2afa23793d42c8ba11c5b98398282 /larn/movem.c | |
parent | 98b4affa216164b77e59278a2b1cdc3deee77716 (diff) | |
download | bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.gz bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.tar.zst bsdgames-darwin-60030fd11e6c646dbc35c5254b2520d5af45288f.zip |
WARNS=5
Diffstat (limited to 'larn/movem.c')
-rw-r--r-- | larn/movem.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/larn/movem.c b/larn/movem.c index 81127dd7..b9745fcc 100644 --- a/larn/movem.c +++ b/larn/movem.c @@ -1,4 +1,4 @@ -/* $NetBSD: movem.c,v 1.8 2011/08/16 11:19:41 christos Exp $ */ +/* $NetBSD: movem.c,v 1.9 2012/06/19 05:30:43 dholland Exp $ */ /* * movem.c (move monster) Larn is copyrighted 1986 by Noah Morgan. @@ -12,7 +12,7 @@ */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: movem.c,v 1.8 2011/08/16 11:19:41 christos Exp $"); +__RCSID("$NetBSD: movem.c,v 1.9 2012/06/19 05:30:43 dholland Exp $"); #endif /* not lint */ #include "header.h" @@ -32,7 +32,7 @@ static void movsphere(void); static short w1[9], w1x[9], w1y[9]; static int tmp1, tmp2, tmp3, tmp4, distance; void -movemonst() +movemonst(void) { int i, j; if (c[TIMESTOP]) @@ -132,8 +132,7 @@ movemonst() */ static int tmpitem, xl, xh, yl, yh; static void -movemt(i, j) - int i, j; +movemt(int i, int j) { int k, m, z, tmp, xtmp, ytmp, monst; switch (monst = mitem[i][j]) { /* for half speed monsters */ @@ -274,8 +273,7 @@ out: if (tmp < distance) /* did find connectivity */ * in (xd,yd). */ static void -mmove(aa, bb, cc, dd) - int aa, bb, cc, dd; +mmove(int aa, int bb, int cc, int dd) { int tmp, i, flag; const char *who = NULL; @@ -405,7 +403,7 @@ mmove(aa, bb, cc, dd) #define SPHMAX 20 /* maximum number of spheres movsphere can * handle */ static void -movsphere() +movsphere(void) { int x, y, dir, len; struct sphere *sp, *sp2; |