]>
git.cameronkatri.com Git - bsdgames-darwin.git/log
jsm [Mon, 25 Sep 2000 14:08:08 +0000 (14:08 +0000)]
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.
jsm [Mon, 25 Sep 2000 14:06:20 +0000 (14:06 +0000)]
Remove excess blank lines. From OpenBSD.
jsm [Mon, 25 Sep 2000 14:05:52 +0000 (14:05 +0000)]
Fix loving already loved goddess; avoid fallthrough after loving
goddess; give error on "love amulet". From OpenBSD.
jsm [Mon, 25 Sep 2000 00:33:18 +0000 (00:33 +0000)]
Use defined constant FINAL instead of hardcoded 275. From OpenBSD.
jsm [Mon, 25 Sep 2000 00:28:54 +0000 (00:28 +0000)]
Fix logic error in use of n and wordnumber in murder() when using
laser. From OpenBSD.
jsm [Sun, 24 Sep 2000 15:51:40 +0000 (15:51 +0000)]
Discard any part of a line of input that goes beyond our buffer rather
than treating it as our next line of input. From OpenBSD.
jsm [Sun, 24 Sep 2000 14:42:18 +0000 (14:42 +0000)]
Give less cryptic messages than "-1%" when WEIGHT or CUMBER are zero.
jsm [Sun, 24 Sep 2000 14:20:23 +0000 (14:20 +0000)]
Add explicit no-ops to empty loops following the NetBSD style guide.
jsm [Sun, 24 Sep 2000 14:11:09 +0000 (14:11 +0000)]
Make hash table static in parse.c.
jsm [Sun, 24 Sep 2000 09:47:22 +0000 (09:47 +0000)]
Use NULL instead of 0 (from OpenBSD). Also add or adjust comments.
jsm [Sun, 24 Sep 2000 09:46:57 +0000 (09:46 +0000)]
Correct spelling "dont" to "don't". From OpenBSD.
jsm [Sun, 24 Sep 2000 09:46:28 +0000 (09:46 +0000)]
Make functions local to parse.c static.
jsm [Sun, 24 Sep 2000 09:46:03 +0000 (09:46 +0000)]
Give a better message for trying to eat things it doesn't make sense
to eat. For something eatable, check first whether you're holding it,
then whether you have a knife, then whether you're stuffed (gives
better message for "eat coconuts" when you don't have any). From
OpenBSD.
jsm [Sun, 24 Sep 2000 09:44:28 +0000 (09:44 +0000)]
Clean up fly.c by making local variables and functions static and
removing abs() macro.
jsm [Sun, 24 Sep 2000 09:41:53 +0000 (09:41 +0000)]
Prevent CUMBER from going negative; avoid division by zero if it is
zero.
jsm [Sun, 24 Sep 2000 09:39:56 +0000 (09:39 +0000)]
Attempt to disambiguate BODY for kicking. Avoid crashing or nonsense
messages on "kick door" and "kick man". From OpenBSD.
jsm [Sat, 23 Sep 2000 19:51:02 +0000 (19:51 +0000)]
Allow for bathing goddess in love(); give better message for a lover
that isn't present and for certain choices of lover. From OpenBSD.
jsm [Sat, 23 Sep 2000 19:45:07 +0000 (19:45 +0000)]
Allow for the bathing goddess in ravage(). From OpenBSD.
jsm [Sat, 23 Sep 2000 19:23:57 +0000 (19:23 +0000)]
Use a lookup table to identify whether objects are plural or singular,
instead of testing the final character against 's' in each place.
Avoids oddities about "pot of jewels" and "compass".
simonb [Sat, 23 Sep 2000 13:53:41 +0000 (13:53 +0000)]
Use ${COPY} instead of -c for ${INSTALL} commands.
jhawk [Sat, 23 Sep 2000 01:52:50 +0000 (01:52 +0000)]
Correct descriptions of "marked" vs. "ignored" -- they were swapped.
jsm [Fri, 22 Sep 2000 12:38:10 +0000 (12:38 +0000)]
Don't say "Kicked." of an object not present; give sensible messages.
From OpenBSD.
jsm [Fri, 22 Sep 2000 12:37:32 +0000 (12:37 +0000)]
Check for an object being taken not being there before checking for
whether it is too heavy or too bulky; gives a better message for "take
viper" with the viper not present.
jsm [Fri, 22 Sep 2000 08:19:57 +0000 (08:19 +0000)]
Give appropriate messages (rather than saying nothing) if an verb is
used with "all" and nothing relevant is present. From OpenBSD.
jsm [Fri, 22 Sep 2000 08:19:21 +0000 (08:19 +0000)]
Remove all adjectives in parse(), since they are nowhere used. Fixes
crash on "carry old all" shown up by fuzz testing. Patch from Paul
Janzen <pjanzen@foatdi.harvard.edu>.
jsm [Fri, 22 Sep 2000 08:18:20 +0000 (08:18 +0000)]
Give an appropriate error on "kill all" rather than a crash or
nonsense message. From OpenBSD.
jsm [Thu, 21 Sep 2000 17:44:34 +0000 (17:44 +0000)]
Various improvements to parsing in battlestar, mostly from OpenBSD.
Define a constant WORDLEN. Always use this constant and NWORD where
appropriate.
Use NWORD - 1 in battlestar.c to avoid off-by-one error.
Increment wordnumber after the INVEN verb to allow it to be followed
by a comma and other actions.
Avoid overflowing elements of the words array if input words are too
long.
Parse "," as AND except when followed by a verb, to allow such
constructions as "take foo, bar, and baz". Trim AND AND which may
occur from the ", and" in such a list.
Avoid crashes from EVERYTHING in the wrong place by moving it to the
start of OBJECT AND EVERYTHING and NOUNS AND EVERYTHING sequences, and
trimming EVERYTHING AND EVERYTHING.
jsm [Thu, 21 Sep 2000 10:38:50 +0000 (10:38 +0000)]
Don't try to wear anything that isn't OBJECT or NOUNS. Don't try to
wear DOOR or anything without a short description. Fixes crashes on
"wear knfo" (bug reported by Peter Maydell
<pmaydell@chiark.greenend.org.uk>), "wear wear", "wear kick", "wear
door" and "wear goddess". Partly from OpenBSD.
jsm [Thu, 21 Sep 2000 10:22:36 +0000 (10:22 +0000)]
If no hand-to-hand weapons are available, try using the laser to kill
in murder(). From OpenBSD.
jsm [Thu, 21 Sep 2000 09:49:03 +0000 (09:49 +0000)]
die() on EOF; based on OpenBSD.
jsm [Thu, 21 Sep 2000 09:48:10 +0000 (09:48 +0000)]
From OpenBSD: in kiss(), "take" the bathing goddess if required, and
give a better error message if the person to kiss is not present.
jsm [Mon, 18 Sep 2000 06:14:31 +0000 (06:14 +0000)]
Add missing initialisers (avoid gcc -W warnings) and comments giving
room numbers.
jsm [Sun, 17 Sep 2000 23:04:17 +0000 (23:04 +0000)]
Clean up formatting; partly from OpenBSD.
jsm [Sun, 17 Sep 2000 23:03:43 +0000 (23:03 +0000)]
Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),
and "verbose"/"brief" (in verbose mode, always show long room
descriptions), and synonyms "papaya" for "papayas" and "coconut" for
"coconuts".
jsm [Sun, 10 Sep 2000 10:52:56 +0000 (10:52 +0000)]
Based on OpenBSD: spelling, punctuation, grammar and line length
adjustments, and support for '=' in room descriptions meaning a
literal '-'.
jsm [Sun, 10 Sep 2000 10:51:16 +0000 (10:51 +0000)]
Wording, punctuation and line length improvements. Also adjust test
for killing nonsensical things to fix crash with "kill door". From
OpenBSD.
jsm [Sat, 9 Sep 2000 18:03:58 +0000 (18:03 +0000)]
Make spacing nicer and add explicit NULL initializers.
jsm [Sat, 9 Sep 2000 09:37:58 +0000 (09:37 +0000)]
Store copy of username with strdup rather than using a fixed length
buffer. Also make initialization functions and arrays static.
jsm [Sat, 9 Sep 2000 09:36:23 +0000 (09:36 +0000)]
Put prototypes in alphabetical order.
jsm [Fri, 8 Sep 2000 17:25:31 +0000 (17:25 +0000)]
Spelling and punctuation corrections or improvements from OpenBSD.
jsm [Fri, 8 Sep 2000 17:22:01 +0000 (17:22 +0000)]
Make code clearer; add a macro ROOMDESC for the number of times a room
should be visited for the short description only to be used, and don't
increment beenthere[position] beyond this value. From OpenBSD.
jsm [Fri, 8 Sep 2000 17:18:36 +0000 (17:18 +0000)]
Manpage improvements based on OpenBSD.
abs [Thu, 17 Aug 2000 16:54:28 +0000 (16:54 +0000)]
If we install limerick-o.dat, we should also install limerick-o to make it
usable.
abs [Thu, 17 Aug 2000 16:48:52 +0000 (16:48 +0000)]
Split netbsd fortunes into offensive and non offensive.
Split could be considered somewhat arbitrary.
abs [Thu, 17 Aug 2000 16:27:38 +0000 (16:27 +0000)]
NetBSD: A pmap for every occasion
mason [Sat, 12 Aug 2000 23:04:15 +0000 (23:04 +0000)]
Corrected quote. It was totally missing its (well-known) equivalent of
a punch line.
simonb [Mon, 31 Jul 2000 11:39:00 +0000 (11:39 +0000)]
Use a local implementation of htonl() called h2nl(). htonl() is not
available in all cross-compile environments.
Patches from Chris Demetriou.
ad [Mon, 31 Jul 2000 11:38:21 +0000 (11:38 +0000)]
Add 3 from me.
simonb [Mon, 31 Jul 2000 11:35:03 +0000 (11:35 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros for host programs -
use portable ANSI constructs instead.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:32:33 +0000 (11:32 +0000)]
Use a local implementation of htonl() called h2nl(). htonl() is not
available in all cross-compile environments.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:29:48 +0000 (11:29 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err
function for host programs - use portable ANSI constructs instead.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:28:48 +0000 (11:28 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/warnx
functions for host programs - use portable ANSI constructs instead.
Patches from Chris Demetriou.
simonb [Mon, 31 Jul 2000 11:25:50 +0000 (11:25 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/errx
functions for host programs - use portable ANSI constructs instead.
Patches from Chris Demetriou.
mycroft [Sun, 23 Jul 2000 23:57:23 +0000 (23:57 +0000)]
Rename move() to moveplayer() to avoid clashing with libcurses.
itojun [Mon, 10 Jul 2000 10:19:25 +0000 (10:19 +0000)]
printf() pedant - do not pass variable alone, use %s.
idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
msaitoh [Wed, 5 Jul 2000 15:45:28 +0000 (15:45 +0000)]
remove extra period in SEE ALL section
mjl [Mon, 3 Jul 2000 18:51:45 +0000 (18:51 +0000)]
After weeding out duplicate, modify entry to be mathematically
correct at least. (Yes, both were wrong. People can't integrate
nowadays anymore :)
mjl [Mon, 3 Jul 2000 17:23:37 +0000 (17:23 +0000)]
Remove duplicate (and incorrect) entry. From Anton Berezin
<tobez@tobez.org> in FreeBSD PR/19670
matt [Mon, 3 Jul 2000 03:57:39 +0000 (03:57 +0000)]
More include additions for exit, abs, strcmp, etc.
mason [Fri, 30 Jun 2000 04:04:09 +0000 (04:04 +0000)]
Offered horse brutality to a previously incorrect RHPS quote.
matt [Tue, 20 Jun 2000 16:07:04 +0000 (16:07 +0000)]
Make this produce local objects with .lo suffix.
scw [Wed, 14 Jun 2000 08:10:06 +0000 (08:10 +0000)]
NetBSD: Ports to * boards.
mycroft [Sun, 11 Jun 2000 15:37:51 +0000 (15:37 +0000)]
Don't make /var/games/sail here.
jwise [Wed, 7 Jun 2000 14:04:45 +0000 (14:04 +0000)]
Remove one of mine that really wasn't very good, and add:
NetBSD: abandon all hype, oh ye who enter here.
blymn [Wed, 24 May 2000 14:43:00 +0000 (14:43 +0000)]
Fix core dump.
blymn [Wed, 24 May 2000 14:20:29 +0000 (14:20 +0000)]
Fix coredump on start.
blymn [Mon, 22 May 2000 12:42:46 +0000 (12:42 +0000)]
Converted games to use the new termcap interface.
blymn [Sat, 20 May 2000 14:01:42 +0000 (14:01 +0000)]
* Fix termcap handling to use the new interface to avoid buffer
overflows with extended termcap entries.
* Made delay_output use usleep instead of the grungy tgoto hack it had.
hubertf [Wed, 17 May 2000 02:30:25 +0000 (02:30 +0000)]
Fix typo, pointed out by seebs@plethora.net in PR bin/10131.
mycroft [Mon, 8 May 2000 07:55:59 +0000 (07:55 +0000)]
Use setgid(), not setregid().
pooka [Tue, 2 May 2000 11:41:24 +0000 (11:41 +0000)]
NetBSD - because Unix isn't just #include <linux.h>, i386, ELF, ...!
thorpej [Thu, 27 Apr 2000 19:31:23 +0000 (19:31 +0000)]
Cast pointer diffs to long for printing with %ld.
thorpej [Thu, 27 Apr 2000 17:49:15 +0000 (17:49 +0000)]
Cast pointer difference to long when printing w/ %ld.
jdc [Thu, 27 Apr 2000 00:33:49 +0000 (00:33 +0000)]
Clear to end of line on the correct window.
jdc [Thu, 27 Apr 2000 00:30:51 +0000 (00:30 +0000)]
Fix arguments to *printw().
simonb [Mon, 24 Apr 2000 15:42:40 +0000 (15:42 +0000)]
While everyone's beating up on rot13 - use 'exec' to loose the shell
process.
perry [Mon, 24 Apr 2000 15:37:32 +0000 (15:37 +0000)]
$* -> "$@", not that it does anything. yet.
perry [Mon, 24 Apr 2000 15:30:34 +0000 (15:30 +0000)]
keep it simple.
pk [Mon, 24 Apr 2000 15:15:05 +0000 (15:15 +0000)]
HOST_CC -> HOST_LINK.c
hubertf [Mon, 24 Apr 2000 13:21:26 +0000 (13:21 +0000)]
Don't rely upon /usr/games being in PATH, include it explicitly.
Fixes PR 9968 by yyrkoo@imrryr.org.
simonb [Fri, 14 Apr 2000 05:58:01 +0000 (05:58 +0000)]
Don't declare 'extern opt*' getopt variables.
simonb [Fri, 14 Apr 2000 04:12:18 +0000 (04:12 +0000)]
Greatly simplify these by using <bsd.hostprog.mk>. Should do the same
for games/hack and games/monop and a few other places, but that requires
making subdirs for the tools. One day...
simonb [Thu, 13 Apr 2000 06:07:06 +0000 (06:07 +0000)]
Curses works - define USE_CURSES for BSD44 and don't try to do our own
thing (using curses internal data structures anyway!).
soren [Tue, 11 Apr 2000 03:45:40 +0000 (03:45 +0000)]
Missing word. From Paul Janzen.
mycroft [Sun, 9 Apr 2000 23:02:52 +0000 (23:02 +0000)]
Don't insert leading 0s in the score display. (HI CHRISTOS!)
jsm [Sun, 9 Apr 2000 22:37:40 +0000 (22:37 +0000)]
Correct capital of the Philippines, allow usual spelling of Jakarta
and prefer the usual name of Cambodia to Khmer.
Problems reported by Robert Vollmert <rvollmert@gmx.net>.
jwise [Thu, 6 Apr 2000 02:19:23 +0000 (02:19 +0000)]
Tyop fix.
jdolecek [Thu, 30 Mar 2000 11:01:13 +0000 (11:01 +0000)]
Fix two ubiquitous operator precedence error of type
bar = foo + (cond) ? x : y.
Patch sent by John Darrow in bin/9698.
tron [Tue, 28 Mar 2000 19:37:54 +0000 (19:37 +0000)]
Use an equal probability single draw algorithm to get card from deck.
Patch supplied by John Darrow in PR bin/9651.
soren [Mon, 13 Mar 2000 23:57:23 +0000 (23:57 +0000)]
Fix doubled 'the'.
soren [Mon, 13 Mar 2000 22:55:05 +0000 (22:55 +0000)]
Fix doubled 'the's.
soren [Mon, 13 Mar 2000 22:53:22 +0000 (22:53 +0000)]
Fix doubled 'the'.
soren [Mon, 13 Mar 2000 22:46:59 +0000 (22:46 +0000)]
Fix doubled 'the' in comment.
kleink [Thu, 2 Mar 2000 18:22:31 +0000 (18:22 +0000)]
Include <sys/param.h> for MAXHOSTNAMELEN.
kleink [Thu, 2 Mar 2000 18:19:06 +0000 (18:19 +0000)]
POSIX.2: Ignore a null PAGER as well.
enami [Thu, 2 Mar 2000 13:27:53 +0000 (13:27 +0000)]
Fix .Nm usage.
hubertf [Wed, 1 Mar 2000 23:38:51 +0000 (23:38 +0000)]
Fix wrong reference to trek documentation
Submitted in PR bin/9514 by Thilo.Manske@HEH.Uni-Oldenburg.DE
jwise [Sun, 27 Feb 2000 05:40:36 +0000 (05:40 +0000)]
fix tyop
pooka [Tue, 15 Feb 2000 13:56:02 +0000 (13:56 +0000)]
NetBSD: We come in peace. We offer reliability.
+ correct a typo
pooka [Sat, 12 Feb 2000 10:12:58 +0000 (10:12 +0000)]
NetBSD: We don't negotiate with terrorists.