summaryrefslogtreecommitdiffstats
path: root/battlestar
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-0512-141/+141
|
* Use PREFIX nowCameron Katri2021-03-282-4/+6
|
* Get all the games compiling for iOSCameron Katri2021-02-221-8/+13
|
* speed limit 80dholland2020-12-061-9/+24
|
* games/battlestar: Replace snprintf(3) with strlcpy(3) for better performance.fox2020-02-061-6/+6
| | | Reviewed by: kamil@
* games/battlestar: Fix the -Werror=restrict warning.fox2020-02-051-6/+6
| | | | | | | | Replace strcpy(1) with the safer snprintf(3) which guarantees NULL termination of strings. Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag. Reviewed by: kamil@
* Gcc-8 bug confusion with restrict on sh3christos2019-10-291-1/+5
|
* expand the internal consistency checks in truedirec() to avoidmrg2019-10-051-7/+10
| | | | | fallthrough cases. now if direction turns up wrong (it should not, but this code can't tell that, and convert it to an enum that would also fix this, is more effort than this is worth.
* - add or adjust /* FALLTHROUGH */ where appropriatemrg2019-02-032-4/+7
| | | | - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
* fix issues found by GCC 6.4:mrg2018-02-042-6/+8
| | | | | | | | | | | | | | | | | battlestar was missing some {} in its insane printf()+puts() usage. this is a literal code sequence i found: printf("The blast catches "); printf("the goddess in the "); printf("stomach, knocking "); puts("her to the ground."); printf("She writhes in the "); printf("dirt as the agony of "); puts("death taunts her."); puts("She has stopped moving."); no lines inserted or removed. tetris' checkscores() had wrong and missing {} usage.
* Use random(), not rand().dholland2014-03-222-5/+5
|
* avoid unnecessary floating point opsdholland2014-03-221-4/+7
|
* avoid signed left-shiftdholland2014-03-221-5/+5
|
* Use CHAR_BIT, not 8.dholland2014-03-221-2/+3
|
* Pass -Wstrict-overflow.dholland2012-10-131-4/+5
|
* WARNS=5, and make WARNS=5 the default for src/games.dholland2012-06-192-6/+6
|
* PR/45842: Henning Petersen: compare fgets with NULL not 0christos2012-01-161-3/+3
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-4/+4
|
* Don't use return value of a function as format string.joerg2011-05-231-3/+3
|
* fflush the score file while signals are blocked to decrease the chance ofdholland2010-04-241-2/+3
| | | it getting corrupted.
* fix typo.christos2010-04-021-3/+3
|
* handle ctime returning NULL.christos2010-04-021-6/+3
|
* When using -lcurses, you also need -lterminfo.he2010-02-061-3/+3
| | | | This fixes the build for sun2, and also builds with LDSTATIC=-static, since archive libraries don't record inter-library dependencies.
* sprinkle staticdholland2009-08-123-9/+11
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-152-7/+7
|
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-2/+2
| | | Sort sections if necessary. Use more/better markup.
* KNF and WARNS=3jmc2005-07-0117-394/+667
|
* Add (unsigned char) cast to ctype functionsdsl2004-11-051-11/+11
|
* Remove uses of __P.jsm2004-01-275-80/+80
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0725-172/+72
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Grammar fixes, from jmc@openbsd.wiz2003-04-261-3/+3
|
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-15/+9
|
* New sentences begin on new lines.wiz2002-09-261-14/+15
| | | Patch from Richard Elz, slightly improved by yours truly.
* Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross2002-02-081-11/+11
|
* Convert old deprecated curses call to new equivalent.blymn2001-12-041-3/+3
|
* Rename com#.c to command#.c to avoid conflicts with those file basenamestv2001-10-198-16/+17
| | | on certain Microsoft host OS's.
* `existent', not `existant'wiz2001-06-191-3/+3
|
* don't deref -1.christos2001-06-021-3/+3
|
* Whitespace and/or punctuation fixes.wiz2001-04-021-3/+3
|
* In cypher(), don't attempt to make sense of words other than VERBs orjsm2000-09-255-12/+31
| | | | | | | | KNIFE when a verb is required. Add AUXVERB for "make", "move", "climb" (as in "make love", "climb up") and ignore AUXVERB as a verb, going on to the next word, instead of treating these words as adjectives. When creating new verbs from "put on", "put down", "take off", mark them as type VERB. Mostly from Paul Janzen <pjanzen@foatdi.harvard.edu>.
* Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array.jsm2000-09-252-12/+29
|
* Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately injsm2000-09-254-30/+38
| | | | messages; avoids "a amulet", "a Elf". Define and use macros to use "a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD.
* Remove excess blank lines. From OpenBSD.jsm2000-09-251-14/+2
|
* Fix loving already loved goddess; avoid fallthrough after lovingjsm2000-09-251-3/+10
| | | goddess; give error on "love amulet". From OpenBSD.
* Use defined constant FINAL instead of hardcoded 275. From OpenBSD.jsm2000-09-251-3/+3
|
* Fix logic error in use of n and wordnumber in murder() when usingjsm2000-09-251-7/+7
| | | laser. From OpenBSD.
* Discard any part of a line of input that goes beyond our buffer ratherjsm2000-09-241-2/+8
| | | than treating it as our next line of input. From OpenBSD.
* Give less cryptic messages than "-1%" when WEIGHT or CUMBER are zero.jsm2000-09-241-5/+17
|
* Add explicit no-ops to empty loops following the NetBSD style guide.jsm2000-09-244-14/+20
|