Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug fixes from OpenBSD: | dholland | 2008-02-23 | 1 | -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 some | dholland | 2008-02-23 | 1 | -18/+8 |
| | | | | tidyup. From OpenBSD. | ||||
* | More fixes from OpenBSD: | dholland | 2008-02-23 | 1 | -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. | dholland | 2008-02-23 | 1 | -19/+17 |
| | |||||
* | A first stab at supporting the housing shortage rules. From OpenBSD. | dholland | 2008-02-23 | 2 | -10/+94 |
| | | | (note: this is not fully correct - I will fix it when I finish merging) | ||||
* | Don't increment booleans. From OpenBSD | dholland | 2008-02-23 | 1 | -6/+6 |
| | |||||
* | Sanity fixes for input buffer handling. From OpenBSD | dholland | 2008-02-23 | 1 | -11/+7 |
| | |||||
* | Improve the behavior of get-out-of-jail-free cards by returning them to | dholland | 2008-02-23 | 1 | -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 make | dholland | 2008-02-23 | 2 | -7/+7 |
| | | | somewhat more sense...) | ||||
* | Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD. | dholland | 2008-02-23 | 2 | -19/+19 |
| | |||||
* | A few more whitespace/KNF. I keep hoping I've found them all... | dholland | 2008-02-20 | 4 | -17/+14 |
| | |||||
* | Add the sizes to the extern array declarations. This may not be | dholland | 2008-02-20 | 1 | -6/+6 |
| | | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD. | ||||
* | Use random() rather than rand(). Suggested by diffing against OpenBSD. | dholland | 2008-02-20 | 2 | -6/+7 |
| | |||||
* | Remove unused swap() macro. | dholland | 2008-02-20 | 1 | -6/+1 |
| | |||||
* | Don't misuse random strings as printf formats, even where it's harmless. | dholland | 2008-02-20 | 1 | -3/+3 |
| | | | Found by diffing against OpenBSD. | ||||
* | One more (hopefully the last) whitespace fix. | dholland | 2008-02-19 | 1 | -3/+3 |
| | |||||
* | getinp() no longer magically treats the prompt arg as a printf format, so | dholland | 2008-02-19 | 1 | -3/+3 |
| | | | don't escape % as %%. From OpenBSD. | ||||
* | Move function heading comments to something vaguely like the right place. | dholland | 2008-02-19 | 1 | -7/+22 |
| | |||||
* | KNF/whitespace nits. No functional changes. | dholland | 2008-02-19 | 9 | -49/+53 |
| | |||||
* | Fix bugs in debug printouts. From OpenBSD. | dholland | 2008-02-19 | 1 | -8/+9 |
| | |||||
* | Don't use sprintf; use snprintf. | dholland | 2008-02-19 | 2 | -8/+10 |
| | |||||
* | Don't use perror(); use err/warn instead. | dholland | 2008-02-19 | 2 | -12/+9 |
| | | | Suggested by diffing against OpenBSD. | ||||
* | Fix capitalization of street names. from pjanzen@openbsd | dholland | 2008-02-19 | 1 | -21/+21 |
| | |||||
* | More typo fixes | dholland | 2008-02-19 | 2 | -4/+4 |
| | |||||
* | Fix formatting bug apparently introduced when the page was mdoc'd. (Had | dholland | 2008-02-19 | 1 | -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, and | dholland | 2008-02-19 | 1 | -15/+14 |
| | | | finish dealing with some local variables that shadow a global. (hi dholland) | ||||
* | Fix (another) typo in comment | dholland | 2008-02-19 | 1 | -3/+3 |
| | |||||
* | Fix typo in comment | dholland | 2008-02-19 | 1 | -3/+3 |
| | |||||
* | Split some code from moreobj.c into action.c, as per larn 12.2. | dholland | 2008-02-19 | 4 | -185/+332 |
| | |||||
* | Typo correction: s/than/that/ in one instance. | he | 2008-02-15 | 1 | -1/+1 |
| | |||||
* | More assorted cleanup merged from larn 12.2. | dholland | 2008-02-04 | 5 | -175/+78 |
| | |||||
* | Once upon a time, larn 12.0 had functions named getchar() and putchar() | dholland | 2008-02-03 | 9 | -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 enabled | dholland | 2008-02-03 | 1 | -3/+3 |
| | | | by default, though.) | ||||
* | Larn does not need its own private versions of functions from <ctype.h>. | dholland | 2008-02-03 | 7 | -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. | dholland | 2008-02-03 | 3 | -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. | dholland | 2008-02-03 | 4 | -26/+31 |
| | |||||
* | Make a bunch of functions static. Merged from larn 12.2. | dholland | 2008-02-03 | 8 | -68/+80 |
| | |||||
* | Use mkstemp to make the temporary files used when you win. | dholland | 2008-02-03 | 1 | -5/+5 |
| | |||||
* | Since games are (now) setgid, not setuid, it is no longer necessary to | dholland | 2008-02-03 | 3 | -30/+30 |
| | | | manipulate the effective uid, only the effective gid. | ||||
* | Document -d. | wiz | 2008-02-03 | 1 | -2/+8 |
| | |||||
* | Add a -d flag so that primes will print the difference between the current | matt | 2008-02-02 | 1 | -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. | matt | 2008-02-02 | 1 | -3/+3 |
| | |||||
* | Pedanticism about time_t (not really a bug, but now it won't show up when | dholland | 2008-01-31 | 1 | -3/+3 |
| | | | audited.) | ||||
* | Fix y2038 bug: time_t != int. | dholland | 2008-01-31 | 3 | -10/+13 |
| | |||||
* | Make the default WARNS for games 4. The only game that needs to set WARNS | dholland | 2008-01-28 | 12 | -30/+13 |
| | | | to anything else now is rogue, so clear WARNS from the other makefiles. | ||||
* | build with WARNS=4 | dholland | 2008-01-28 | 1 | -6/+6 |
| | |||||
* | Make hack build with WARNS=4. | dholland | 2008-01-28 | 18 | -94/+102 |
| | |||||
* | Make this build with WARNS=4 by not reusing names from <math.h>. | dholland | 2008-01-28 | 1 | -5/+5 |
| | |||||
* | Make this build with WARNS=4 by not reusing names from ctype.h. | dholland | 2008-01-28 | 1 | -9/+9 |
| | |||||
* | Make this build with WARNS=4. | dholland | 2008-01-28 | 9 | -70/+78 |
| |