summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bug fixes from OpenBSD:dholland2008-02-231-3/+7
| | | | - don't truncate unreasonably long player names when bidding; - don't allow players to bid more cash than they have.
* Bug fix: having $0 does not mean you need to mortgage something. Plus somedholland2008-02-231-18/+8
| | | | tidyup. From OpenBSD.
* More fixes from OpenBSD:dholland2008-02-231-20/+21
| | | | | | - initialize in the proper order - don't allow 1-player games - make the check for players named "done" work properly - a couple other minor things
* Sanity fixes for input handling. Suggested by OpenBSD, but different code.dholland2008-02-231-19/+17
|
* A first stab at supporting the housing shortage rules. From OpenBSD.dholland2008-02-232-10/+94
| | | (note: this is not fully correct - I will fix it when I finish merging)
* Don't increment booleans. From OpenBSDdholland2008-02-231-6/+6
|
* Sanity fixes for input buffer handling. From OpenBSDdholland2008-02-231-11/+7
|
* Improve the behavior of get-out-of-jail-free cards by returning them todholland2008-02-231-5/+38
| | | | the bottom of the deck when used. There are still a few other problems. From OpenBSD.
* Rename ->last_card to ->top_card to match OpenBSD (and also to makedholland2008-02-232-7/+7
| | | somewhat more sense...)
* Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.dholland2008-02-232-19/+19
|
* A few more whitespace/KNF. I keep hoping I've found them all...dholland2008-02-204-17/+14
|
* Add the sizes to the extern array declarations. This may not bedholland2008-02-201-6/+6
| | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD.
* Use random() rather than rand(). Suggested by diffing against OpenBSD.dholland2008-02-202-6/+7
|
* Remove unused swap() macro.dholland2008-02-201-6/+1
|
* Don't misuse random strings as printf formats, even where it's harmless.dholland2008-02-201-3/+3
| | | Found by diffing against OpenBSD.
* One more (hopefully the last) whitespace fix.dholland2008-02-191-3/+3
|
* getinp() no longer magically treats the prompt arg as a printf format, sodholland2008-02-191-3/+3
| | | don't escape % as %%. From OpenBSD.
* Move function heading comments to something vaguely like the right place.dholland2008-02-191-7/+22
|
* KNF/whitespace nits. No functional changes.dholland2008-02-199-49/+53
|
* Fix bugs in debug printouts. From OpenBSD.dholland2008-02-191-8/+9
|
* Don't use sprintf; use snprintf.dholland2008-02-192-8/+10
|
* Don't use perror(); use err/warn instead.dholland2008-02-192-12/+9
| | | Suggested by diffing against OpenBSD.
* Fix capitalization of street names. from pjanzen@openbsddholland2008-02-191-21/+21
|
* More typo fixesdholland2008-02-192-4/+4
|
* Fix formatting bug apparently introduced when the page was mdoc'd. (Haddholland2008-02-191-3/+3
| | | | | | .Nm, should have been .Pp.) Also bump date; for some reason this hadn't been done since the original import.
* Remove transient thingy that wasn't supposed to see the light of day, anddholland2008-02-191-15/+14
| | | finish dealing with some local variables that shadow a global. (hi dholland)
* Fix (another) typo in commentdholland2008-02-191-3/+3
|
* Fix typo in commentdholland2008-02-191-3/+3
|
* Split some code from moreobj.c into action.c, as per larn 12.2.dholland2008-02-194-185/+332
|
* Typo correction: s/than/that/ in one instance.he2008-02-151-1/+1
|
* More assorted cleanup merged from larn 12.2.dholland2008-02-045-175/+78
|
* Once upon a time, larn 12.0 had functions named getchar() and putchar()dholland2008-02-039-89/+89
| | | | | | | that conflicted with libc. We changed them to lgetchar() and xputchar() respectively; larn 12.2 changed them to ttgetch() and ttputch(). After reflecting on this for a while I've decided to adopt the larn 12.2 names; not so much for compatibility but for consistency going forward. So, massrename them. Also make ttputch() static.
* Don't create files mode 666 in /var. (The code in question is not enableddholland2008-02-031-3/+3
| | | by default, though.)
* Larn does not need its own private versions of functions from <ctype.h>.dholland2008-02-037-96/+17
| | | Also, remove the function gettokstr(), which is not used. From larn 12.2.
* A long time ago, larn had code to prohibit playing it during work hours.dholland2008-02-033-89/+8
| | | | | | | | | Most of this code was removed ages ago, probably when dm(6) was invented; long before -r1.1 in the NetBSD tree in any event. Now remove the last fragment of it. Also nuke the file of US holidays 1987-1993 that we've been carrying around for no reason.
* Some assorted minor cleanups, from larn 12.2.dholland2008-02-034-26/+31
|
* Make a bunch of functions static. Merged from larn 12.2.dholland2008-02-038-68/+80
|
* Use mkstemp to make the temporary files used when you win.dholland2008-02-031-5/+5
|
* Since games are (now) setgid, not setuid, it is no longer necessary todholland2008-02-033-30/+30
| | | manipulate the effective uid, only the effective gid.
* Document -d.wiz2008-02-031-2/+8
|
* Add a -d flag so that primes will print the difference between the currentmatt2008-02-021-14/+31
| | | | | prime and the previous prime. [I needed that for some reason I don't recall and these changes lying about. Since they might be useful/interesting to someone, I might as well as commit them.]
* Fix typo: sive -> sieve.matt2008-02-021-3/+3
|
* Pedanticism about time_t (not really a bug, but now it won't show up whendholland2008-01-311-3/+3
| | | audited.)
* Fix y2038 bug: time_t != int.dholland2008-01-313-10/+13
|
* Make the default WARNS for games 4. The only game that needs to set WARNSdholland2008-01-2812-30/+13
| | | to anything else now is rogue, so clear WARNS from the other makefiles.
* build with WARNS=4dholland2008-01-281-6/+6
|
* Make hack build with WARNS=4.dholland2008-01-2818-94/+102
|
* Make this build with WARNS=4 by not reusing names from <math.h>.dholland2008-01-281-5/+5
|
* Make this build with WARNS=4 by not reusing names from ctype.h.dholland2008-01-281-9/+9
|
* Make this build with WARNS=4.dholland2008-01-289-70/+78
|