summaryrefslogtreecommitdiffstats
path: root/hunt/hunt/otto.c
diff options
context:
space:
mode:
Diffstat (limited to 'hunt/hunt/otto.c')
-rw-r--r--hunt/hunt/otto.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c
index 8c163b47..09032346 100644
--- a/hunt/hunt/otto.c
+++ b/hunt/hunt/otto.c
@@ -1,4 +1,4 @@
-/* $NetBSD: otto.c,v 1.15 2009/07/04 07:10:23 dholland Exp $ */
+/* $NetBSD: otto.c,v 1.16 2014/03/29 20:52:13 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.15 2009/07/04 07:10:23 dholland Exp $");
+__RCSID("$NetBSD: otto.c,v 1.16 2014/03/29 20:52:13 dholland Exp $");
#endif /* not lint */
#include <sys/time.h>
@@ -140,7 +140,7 @@ STATIC struct itimerval pause_time = { { 0, 0 }, { 0, 55000 }};
STATIC void attack(int, struct item *);
STATIC void duck(int);
STATIC void face_and_move_direction(int, int);
-STATIC int go_for_ammo(char);
+STATIC bool go_for_ammo(char);
STATIC void ottolook(int, struct item *);
STATIC void look_around(void);
STATIC void nothing(int);
@@ -523,7 +523,7 @@ duck(int rel_dir)
* go for the closest mine if possible
*/
-STATIC int
+STATIC bool
go_for_ammo(char mine)
{
int i, rel_dir, dist;
@@ -537,7 +537,7 @@ go_for_ammo(char mine)
}
}
if (rel_dir == -1)
- return FALSE;
+ return false;
if (!(flbr[rel_dir].flags & ON_SIDE)
|| flbr[rel_dir].distance > 1) {
@@ -545,8 +545,8 @@ go_for_ammo(char mine)
dist = 4;
face_and_move_direction(rel_dir, dist);
} else
- return FALSE; /* until it's done right */
- return TRUE;
+ return false; /* until it's done right */
+ return true;
}
STATIC void