diff options
author | jsm <jsm@NetBSD.org> | 2000-09-25 14:08:08 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 2000-09-25 14:08:08 +0000 |
commit | b70cf02d334c9377130caff93e07b0afbc39189a (patch) | |
tree | 671edd6f4a6f2e1e5b79cdf2660f0e111f3ba1d3 /battlestar/globals.c | |
parent | 8c9fde9e88ab1979b6e44b73721761d5a3ff5236 (diff) | |
download | bsdgames-darwin-b70cf02d334c9377130caff93e07b0afbc39189a.tar.gz bsdgames-darwin-b70cf02d334c9377130caff93e07b0afbc39189a.tar.zst bsdgames-darwin-b70cf02d334c9377130caff93e07b0afbc39189a.zip |
Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately in
messages; avoids "a amulet", "a Elf". Define and use macros to use
"a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD.
Diffstat (limited to 'battlestar/globals.c')
-rw-r--r-- | battlestar/globals.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/battlestar/globals.c b/battlestar/globals.c index 3938d5e3..072ce36d 100644 --- a/battlestar/globals.c +++ b/battlestar/globals.c @@ -1,4 +1,4 @@ -/* $NetBSD: globals.c,v 1.16 2000/09/24 14:11:09 jsm Exp $ */ +/* $NetBSD: globals.c,v 1.17 2000/09/25 14:08:08 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)globals.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: globals.c,v 1.16 2000/09/24 14:11:09 jsm Exp $"); +__RCSID("$NetBSD: globals.c,v 1.17 2000/09/25 14:08:08 jsm Exp $"); #endif #endif /* not lint */ @@ -221,14 +221,14 @@ const int objcumber[NUMOFOBJECTS] = { }; const int objflags[NUMOFOBJECTS] = { - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, OBJ_PLURAL, 0, OBJ_PLURAL, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, OBJ_PLURAL, 0, 0, 0, - 0, 0, 0, 0, OBJ_PLURAL, 0, 0, OBJ_PLURAL, - 0, 0, OBJ_PLURAL, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0 + 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, OBJ_PLURAL, 0, OBJ_PLURAL, + 0, OBJ_AN, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, OBJ_PLURAL, 0, 0, 0, + 0, 0, OBJ_AN, 0, OBJ_PLURAL, 0, 0, OBJ_PLURAL, + 0, 0, OBJ_PLURAL, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, + OBJ_AN, 0, 0, 0, 0, 0, 0, 0 }; int win = 1; |