summaryrefslogtreecommitdiffstats
path: root/monop
Commit message (Collapse)AuthorAgeFilesLines
* Fixes from OpenBSD.dholland2008-02-231-4/+10
| | | | | | | | | | - If a player goes bankrupt buying a property (which shouldn't be allowed, but I guess it is), don't cause them to resign to themselves. - Use "NULL", not "0", for pointers. - Avoid undefined behavior adjusting the current player after resigning. - Don't leak the memory used to store player names. The last of these is disabled for the moment because we have the pointers in question tagged const. Will see to this when I'm finished merging.
* Fix from OpenBSD: don't say "1 houses".dholland2008-02-231-4/+5
|
* 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
|
* Make this build with WARNS=4.dholland2008-01-289-70/+78
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* A terrible kludge: don't compile/link malloc.c if arch=sun2. My apologiesdogcow2007-11-171-2/+6
| | | | to the legions of sun2 monop fans who will probably be unable to save/restore games.
* Coverity CID 998: Possible NULL pointer deref. Actually this was a bugchristos2006-03-191-5/+6
| | | | where a house to be sold would be skipped. Change the sell loop to be like the buy side loop.
* fix typochristos2006-03-191-3/+3
|
* Coverity CID 1004: Fix NULL deref.christos2006-03-191-2/+4
|
* Coverity CID 1005: Fix NULL deref and incorrect variable use.christos2006-03-191-11/+16
|
* better handle ^d in getinp(), so we dont loop endlessly.elad2006-01-201-6/+5
| | | i have no idea why i wanted to play this game.
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-3/+3
| | | Sort sections if necessary. Use more/better markup.
* Convert from libc/threadlib-style mutex protection to pthread style.nathanw2004-12-141-13/+13
| | | (XXX this game totally does not need a thread-safe malloc)
* Add (unsigned char) cast to ctype functionsdsl2004-11-052-9/+8
|
* Remove uses of __P.jsm2004-01-2713-100/+100
|
* Rename yn to yncoms to avoid conflict with GCC 3.4 built-in XSIjsm2004-01-263-7/+7
| | | function.
* Improve how various "simple" host tools are built and invoked.lukem2003-11-161-4/+4
|
* Rework how MAKEVERBOSE operates:lukem2003-10-211-5/+3
| | | | | | | | | | * Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks.
* rework to use the newer _MKMSGCREATE (et al) macroslukem2003-10-191-3/+3
|
* Support MAKEVERBOSE. (Some host tools still generate verbose runtime messages)lukem2003-10-191-1/+5
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0725-166/+66
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Quote question mark.wiz2003-06-271-2/+2
|
* Fix some nits, do not mark up i.e. too much. From jmc@openbsd.wiz2003-04-261-10/+8
|