diff options
author | dholland <dholland@NetBSD.org> | 2009-03-14 20:04:43 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-03-14 20:04:43 +0000 |
commit | 378015332508b48169d5f735be9a4bb4b6c82c03 (patch) | |
tree | f8401755021f17a0b5e07d16fd7ab7b379e351da /sail/game.c | |
parent | c9ea3d28669550d93bd8b6ba25a908f58b38683a (diff) | |
download | bsdgames-darwin-378015332508b48169d5f735be9a4bb4b6c82c03.tar.gz bsdgames-darwin-378015332508b48169d5f735be9a4bb4b6c82c03.tar.zst bsdgames-darwin-378015332508b48169d5f735be9a4bb4b6c82c03.zip |
Sprinkle some "bool". And don't use '\0' to mean 'false'.
Diffstat (limited to 'sail/game.c')
-rw-r--r-- | sail/game.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sail/game.c b/sail/game.c index adab8266..20d6d83c 100644 --- a/sail/game.c +++ b/sail/game.c @@ -1,4 +1,4 @@ -/* $NetBSD: game.c,v 1.12 2009/03/14 19:35:13 dholland Exp $ */ +/* $NetBSD: game.c,v 1.13 2009/03/14 20:04:43 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,21 +34,22 @@ #if 0 static char sccsid[] = "@(#)game.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: game.c,v 1.12 2009/03/14 19:35:13 dholland Exp $"); +__RCSID("$NetBSD: game.c,v 1.13 2009/03/14 20:04:43 dholland Exp $"); #endif #endif /* not lint */ #include <sys/types.h> +#include <stdbool.h> #include "extern.h" int -maxturns(struct ship *ship, char *af) +maxturns(struct ship *ship, bool *af) { int turns; turns = ship->specs->ta; *af = (ship->file->drift > 1 && turns); - if (*af != '\0') { + if (*af != false) { turns--; if (ship->file->FS == 1) turns = 0; |