summaryrefslogtreecommitdiff
path: root/games
AgeCommit message (Collapse)Author
2014-05-09KNF: unify style and reduce indentation in get_line(), no binary changeIngo Schwarze
ok cmp(1)
2014-05-09After entering an invalid three-letter card name, one letter card namesIngo Schwarze
stopped working because the third letter remained in the buffer, incard() skipped the NUL and used the old garbage. Fix this bug reported by pjanzen@, but in a simpler way than he suggested, by just clearing any trailing garbage from the buffer. ok pjanzen@
2014-05-09Various cleanup:Ingo Schwarze
1. Style: Don't use variables as format strings. NetBSD rev. 1.26 (May 23, 2011) joerg@NetBSD via maintainer pjanzen@. 2. Style: Avoid needless pointer arithmetics. NetBSD rev. 1.27 (Oct 13, 2012) dholland@NetBSD via pjanzen@, who also applied some KNF to the indentation while here. 3. End curses before printing fatal error messages; from pjanzen@.
2014-05-08Do not read from index -1 of an array.Ingo Schwarze
NetBSD rev. 1.16 (Oct 13, 2012) by dholland@NetBSD via maintainer pjanzen@.
2014-04-25This manual was lacking it's most important section, HISTORY.Ingo Schwarze
While here, add .An (author name) macros.
2014-04-25Security is square, gaming is hip,Ingo Schwarze
so extend the Valhalla Rampage to where it really matters. Tedu 118 lines of dead code containing 77 dead magic numbers, rotting in the tree since June 24, 2001. Spotted by and ok jsg@, ok sthen@.
2014-03-30typo fix From: Josh Grosse;Jason McIntyre
2014-03-23some minor cleanup:Jason McIntyre
- new sentence, new line - no need to quote Sh lines, or Pa args
2014-03-23stop using libwrap. ok deraadtTed Unangst
2014-03-11Match bwrite()'s prototype with write()'s, zapping a lint commentPhilip Guenther
Delete casts to char* of arguments to bwrite() and free()
2014-03-11Welcome to 1989: we can ask for signed chars when we want themPhilip Guenther
2014-03-11lint is dead (long live the lint!)Philip Guenther
Declare play() and pl_main() as __dead, to solve the original problem
2014-03-11lint is dead (long live the lint!)Philip Guenther
2014-02-16malcolm macdougall, not dacdougall;Jason McIntyre
From: Joe Marcus Clarke
2014-02-12remove an obsolete man(7) .TP macro that was forgottenIngo Schwarze
when converting this page to mdoc(7) in revision 1.4; noticed by Jan Stary <hans at stare dot cz>
2014-02-11clean up AUTHORS section, no content change:Ingo Schwarze
* add missing .An * do not use .nf and .fi in mdoc(7) code * avoid bare TAB outside literal context * remove pointless .Ss from Jan Stary <hans at stare dot cz>, tweaked by me
2014-01-28from pjanzen:Jason McIntyre
Start with the cursor on the worm's head. ok millert
2014-01-28from pjanzen:Jason McIntyre
Use strtonum() and error out on an unacceptable length argument rather than reverting to default values; document maximum initial length limit. started by a diff From: Jan Stary, who requested we document default behaviour ok millert
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2014-01-11optarg/optind are declared in <unistd.h>, so kill the externs herePhilip Guenther
2013-12-11typo fix from gavin atkinson, freebsd -r259189;Jason McIntyre
2013-11-27remove erroneous char cast to switch expression processing getopt(3);Okan Demirmen
not used in any cases. ok deraadt@, guenther@, millert@
2013-10-25start_time should be time_t, not int since it holds the reasult ofTodd C. Miller
time(0). OK guenther@
2013-10-25Use arc4random_uniform() insead of rand() and modulus.Todd C. Miller
OK deraadt@
2013-10-15remove conditionals for ELF; prodding by patrick keshishianTheo de Raadt
2013-10-15no more a.out support hereTheo de Raadt
2013-09-12Misc time_t tweaks. %ld / (long)tv_sec -> %lld / (long long)tv_sec.Kenneth R Westerback
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
2013-08-29replace srandomdev()+random() with the arc4random*() familyChristian Weisgerber
tweaks and ok millert@, ok deraadt@
2013-08-29Tournament mode uses a deterministic random seed for reproducible games.Christian Weisgerber
Switch seeding from srand() to srandom(), corresponding to the change in random number generator from rand() to random() fifteen years ago. ok pjanzen@ bluhm@ millert@
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-08-18Fix calls to printf-like functions which passed a non-fixed stringPhilip Guenther
as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified. ok jung@ millert@ krw@
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-07-17add missing .An and .Mt macro; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-07-16use .Mt for AUTHORS email; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-06-02Correct obviously exchanged labels in the "computer warpcost" output andIngo Schwarze
fix a typo in a comment; from <Ted dot Roby at gmail dot com> on tech@.
2013-05-09teenagers from *outer* space ("they blast the flesh off hunmans!");Jason McIntyre
2013-04-05this doesn't need to be time_t ok deraadtTed Unangst
2013-02-18typo fix; from pgoyette, netbsd -r1.15 and -r1.11, respectively;Jason McIntyre
2013-02-10typo; fix from patrick keshishianJason McIntyre
2013-01-17macro fixes;Jason McIntyre
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-11-24grammar fix; from Chris Petrik, freebsd pr 173868Jason McIntyre
2012-11-17pjanzen spotted that my previous commit mistakenly omitted anotherJason McIntyre
spelling fix;
2012-11-16two spelling fixes; from John-Mark Gurney (freebsd -r243048);Jason McIntyre
2012-06-20typo; netbsd -r1.10Jason McIntyre
2012-05-27make both -d options format the same, and zap that annoying full stopJason McIntyre
2012-05-27Use an en-dash for 20-200, escape - used as arithmetic symbol.Stuart Henderson
Same as jmc's tweaks for rain(6).
2012-05-27Update for new -d default; tweaks+ok jmc@Stuart Henderson
2012-05-27Teach rain(6) to calculate terminal delays in the same way as worms(6),Stuart Henderson
rather than use a default which totally floods the network if run over ssh. Discussed with matthieu@ martynas@, ok matthieu@
2012-05-24typosMiod Vallat