diff options
Diffstat (limited to 'hunt/hunt/otto.c')
-rw-r--r-- | hunt/hunt/otto.c | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c index e83d7c86..7eb9d49b 100644 --- a/hunt/hunt/otto.c +++ b/hunt/hunt/otto.c @@ -1,4 +1,4 @@ -/* $NetBSD: otto.c,v 1.11 2007/12/15 19:44:41 perry Exp $ */ +/* $NetBSD: otto.c,v 1.12 2009/07/04 01:58:57 dholland Exp $ */ # ifdef OTTO /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -45,7 +45,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: otto.c,v 1.11 2007/12/15 19:44:41 perry Exp $"); +__RCSID("$NetBSD: otto.c,v 1.12 2009/07/04 01:58:57 dholland Exp $"); #endif /* not lint */ # include <sys/time.h> @@ -155,15 +155,12 @@ STATIC void wander(void); extern int Otto_count; STATIC SIGNAL_TYPE -nothing(dummy) - int dummy __unused; +nothing(int dummy __unused) { } void -otto(y, x, face) - int y, x; - char face; +otto(int y, int x, char face) { int i; int old_mask; @@ -232,11 +229,7 @@ done: # define direction(abs,rel) (((abs) + (rel)) % NUMDIRECTIONS) STATIC int -stop_look(itemp, c, dist, side) - struct item *itemp; - char c; - int dist; - int side; +stop_look(struct item *itemp, char c, int dist, int side) { switch (c) { @@ -307,9 +300,7 @@ stop_look(itemp, c, dist, side) } STATIC void -ottolook(rel_dir, itemp) - int rel_dir; - struct item *itemp; +ottolook(int rel_dir, struct item *itemp) { int r, c; char ch; @@ -409,7 +400,7 @@ ottolook(rel_dir, itemp) } STATIC void -look_around() +look_around(void) { int i; @@ -427,8 +418,7 @@ look_around() */ STATIC void -face_and_move_direction(rel_dir, distance) - int rel_dir, distance; +face_and_move_direction(int rel_dir, int distance) { int old_facing; char cmd; @@ -464,9 +454,7 @@ face_and_move_direction(rel_dir, distance) } STATIC void -attack(rel_dir, itemp) - int rel_dir; - struct item *itemp; +attack(int rel_dir, struct item *itemp) { if (!(itemp->flags & ON_SIDE)) { face_and_move_direction(rel_dir, 0); @@ -492,8 +480,7 @@ attack(rel_dir, itemp) } STATIC void -duck(rel_dir) - int rel_dir; +duck(int rel_dir) { int dir; @@ -542,8 +529,7 @@ duck(rel_dir) */ STATIC int -go_for_ammo(mine) - char mine; +go_for_ammo(char mine) { int i, rel_dir, dist; @@ -569,7 +555,7 @@ go_for_ammo(mine) } STATIC void -wander() +wander(void) { int i, j, rel_dir, dir_mask, dir_count; |