summaryrefslogtreecommitdiff
path: root/games
AgeCommit message (Collapse)Author
2017-07-13Convert fprintf(stderr, ...) to errx/warnx (with slight change of output).Theo Buehler
From Scott Cheloha
2017-07-13Use an umlaut in Mobius and uppercase one instance of möbius visible inTheo Buehler
bentley's previous commit.
2017-07-13Convert fortunes to UTF-8 from the old "backspace punctuation" method.Anthony J. Bentley
suggested by tedu, ok schwarze@ stsp@ tb@
2017-07-12Inspect LC_CTYPE and if it isn't UTF-8, weed out bytes that are notIngo Schwarze
printable ASCII. That makes using UTF-8 in fortune datfiles safe. Potential usefulness of UTF-8 in fortune datfiles noticed by bentley@. OK tedu@ millert@.
2017-07-11User count checks have been compiled out since 1998, get rid of them.Frederic Cambus
OK mlarkin@
2017-07-10remove misc. depend and yacc nits that no longer matter.Marc Espie
okay millert@
2017-07-09have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediateMarc Espie
files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@
2017-07-09Remove old junk. From Matthew MartinTheo Buehler
ok bentley
2017-07-07we're not shooting yacceptionMarc Espie
okay millert@
2017-07-01missed BUILDFIRST. Allow stuff to proceed without dependsMarc Espie
as found by krw@
2017-06-30Add missing rot13 function prototypeRicardo Mestre
2017-06-23Remove unused confirm() and datime() functions.Frederic Cambus
Those functions are unused and have been compiled out since 1998, it's time to let them go. OK sthen@, tom@, mestre@
2017-06-20Fix a path in Makequest and remove hack.sh (it never worked).Michal Mazurek
OK tb@
2017-06-19No need for a conditional to choose between nroff and troff.Anthony J. Bentley
ok jmc@
2017-06-15Remove the Installation section and fix a nonexistent path.Michal Mazurek
OK tb@ (fix paths diff) deraadt@
2017-06-12/usr/games/lib doesn't exist any more, use the new path.Michal Mazurek
OK tb@ deraadt@
2017-06-12destroy lint remnants.Marc Espie
okay millert@ deraadt@
2017-06-09Correct number of players, the program enforces a range from 2 to 9.Frederic Cambus
OK tb@, jmc@
2017-06-04Use proper bool types in fortune(6).Frederic Cambus
OK tb@, phessler@ (previous version)
2017-06-02Fix an infinite loop in fortune(6).Frederic Cambus
When invoking fortune with the -l option (to get long dictums only), the program gets stuck in an infinite loop because fortlen() doesn't return the fortune length correctly. OK mestre@, tb@, deraadt@, schwarze@
2017-05-31late game space battles require tty pledge to clear screen, etc.Ted Unangst
from tomr
2017-05-28remove some escapes that are unnecessary/harmful. ok jmc schwarzeTed Unangst
2017-05-28remove unused macroTed Unangst
2017-05-28there are no bugs; i fixed themTed Unangst
2017-05-28if your dying scream would escape the death field, realign to stay withinTed Unangst
2017-05-28high scores printed too far to the right, move it left a littleTed Unangst
2017-05-26forgot to remove mention of deleted dump/restart.Ted Unangst
also delete ancient todo file: Frankly, I am getting pretty sick of playing this game. Hence, the version which you get may have several bugs
2017-05-26save and restore hasn't worked for some time, not since -fPIE, since itTed Unangst
uses a pointer equality check for save game validity. remove it. discovered by the ever inquisitive mlarkin
2017-05-19Silence a whole slew of clang warnings by doing a no-op in the crazyTheo Buehler
internal obfuscation scheme the other way around, thereby avoiding a signed underflow. ok mestre
2017-04-16According to termcap(3), char PC, *BC, *UP need to be extern. Fixes anTheo Buehler
ld(1) error found by mestre a while ago. fix suggested and ok naddy
2017-04-10Clean up disabled declaration in the text struct.Frederic Cambus
OK deraadt@
2017-04-08snprintf() format string should be literalGleydson Soares
avoid compiler silly warnings sure deraadt@
2017-04-08format string is better be literalGleydson Soares
OK deraadt
2017-01-21Nuke whitespace foolish enough to expose itself during the greatKenneth R Westerback
"warning:" rectification.
2017-01-20In "%.*s" the * takes (int). gcc whines if you try to use the resultKenneth R Westerback
of pointer subtraction without a cast. So cast those expressions to (int). Switch one local variable to the same type as the parameter it is compared to. ok deraadt@ guenther@ beck@
2017-01-20mark the prototypes of tutor() and leave() as __dead as well.Theo Buehler
ok guenther, krw
2017-01-20Mark functions that do not return as __dead to quiet gcc warnings.Kenneth R Westerback
ok beck@
2017-01-20Nuke some excess whitespace.Kenneth R Westerback
2016-12-25gcc says "if you define labels and don't use them, I will whine."Kenneth R Westerback
ok tom@
2016-12-21Eliminate another 'calculated, not used' warning by nuking a spuriousKenneth R Westerback
dereference. Same change made in NetBSD in 1997. ok tb@ millert@ tom@
2016-12-03elements 113, 115, 117, and 118; from pjanzenJason McIntyre
2016-12-01Remove useless #ifndef in atc(6) and pom(6).Frederic Cambus
M_PI is always defined, so we can drop those directives. OK deraadt@, millert@
2016-11-05spelling fix from eric van gyzen, freebsd r308293;Jason McIntyre
2016-09-12If boardspec doesn't consist entirely of lower case letters, there will beTheo Buehler
out of bound accesses of arrays, leading to sefaults or bus errors. Verify that at most one boardspec with lower case letters is given, or error out. ok millert
2016-09-12fix init, from randy hartman; ok tb@Otto Moerbeek
2016-09-11Callers of time(3) should #include <time.h>.Theo Buehler
ok deraadt
2016-09-11KNF: Break an overlong line. No binary change.Theo Buehler
2016-09-09These games have been broken for the better part of a year, ever sinceTheo Buehler
their setgid bits got removed. Mark them as such in their manuals. ok deraadt, help with wording jmc
2016-09-02Make build deterministic by not randomizing the datfiles themselves,Theo Buehler
random lines are selected on output and that's enough. From daniel, ok tb
2016-09-01In 32 bits sqrt(val) + 1 can overflow, so some big primes stillTheo Buehler
aren't recognized as such, for example 18446744073709551577 given in the commit message of factor.c r1.7 from NetBSD. Move the return type of usqrt() from u_int32_t to u_int64_t. ok guenther, tom, otto