summaryrefslogtreecommitdiff
path: root/games/trek
AgeCommit message (Collapse)Author
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
2021-01-27satisfy -fno-commonTheo de Raadt
similar to the approach used by mortimer
2018-08-09The game is playable without the need to access any files therefore we canRicardo Mestre
effectively disable all fs access by dropping "rpath wpath cpath" from pledge(2) right at the beginning of the program. "looks right" tb@
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
2016-03-08- ranf() and franf() are prototyped on trek.h but ranf.c doesn't include it somestre
do it - Replace random() >> 5 by only random(): this was discussed a few months ago and naddy@ said at the time "Those games were originally written with the rand(3) function. The lower bits returned by rand(3) suffered from notoriously poor randomness, so this idiom developed where people would use the higher, more random bits." OK tb@ after his remarks
2016-01-08Structural integrity hasn't improved in over twenty years.tb
ok mestre@
2016-01-07Some basic code maintenance in games/tb
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time discussed with and ok mestre@
2016-01-07ANSIfy trek(6)mestre
Note: Binary change is introduced due to function schedule() where its args are (int,double,char,char,char), but on trek.h are (int,double,int,int,int). Changed to the latter since the 3 last args are coordinates. OK tb@
2016-01-07Remove unnecessary headers and sort the remaining alphabeticallymestre
OK tb@
2015-11-30pledge "stdio rpath wpath cpath" for this one.tb
2015-11-11creat() -> open equiv; from Frederic NowakTheo de Raadt
2014-12-08For now, these games still contain deterministic randomization (forTheo de Raadt
save / replay modes of operation that have not yet been cleaned up). OK, I've let the cat out of the bag, now some of you know you can cheat at them.. ok millert guenther tedu
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-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@.
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2011-12-28Add HISTORY section and more information regarding AUTHORS.Ingo Schwarze
Feedback and ok Eric Allman (via Kirk McKusick, thanks!), ok jmc@ sobrado@.
2010-04-30shuffle some things around to deal with incomplete typesJonathan Gray
gcc4 gets upset about. based on suggestions from miod@, ok millert@
2010-01-10remove references to docs we no longer install;Jason McIntyre
2010-01-04Stop installing many of the incredibly dated and un-authoritative share/docTheo de Raadt
files. If any information found in these documents is worthwhile and you miss it, please make the time to work it into the manual pages (which people actually do read). ok guenther
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-05-31convert to new .Dd format;Jason McIntyre
2006-11-06signed char fixes need to avoid infinite loops; pr5284 fromTheo de Raadt
smallm@panix.com a very well written pr, very detailed... well worth reading
2006-11-02Don't access buf[strlen(buf) - 1] on empty strings.Ray Lai
OK moritz@.
2006-03-27assorted fixes mostly from coverity via netbsd via jasper adriaanse via techTed Unangst
2005-11-15More typos (especially indicies -> indices), checked with jmc@Miod Vallat
2004-08-21tweaks to sync w/ trek usd;Jason McIntyre
2004-08-21- add margin when formatting w/ -TasciiJason McIntyre
- various tweaks and syncs w/ trek(6)
2004-05-23cats ld showed that there was a common size mismatch...Theo de Raadt
2004-02-01add paper.txt target;Jason McIntyre
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-30section reorder;Jason McIntyre
2003-04-062451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenTheo de Raadt
already, but he may have later changes to make still.
2003-03-11double words and spelling fixesDavid Krause
ok pjanzen@
2002-12-06Replace things like srandom(time(NULL)) with srandomdev(3). random(3)Todd C. Miller
good enough for games but we should at least use a decent seed. pjanzen@ OK
2002-07-26\a rather than embedded ^GPaul Janzen
2002-06-11no more err(3) newlines in games; ok pjanzen@Jason Peel
2002-05-31de-registerPaul Janzen
2002-05-31No dm -> no need to revoke setegid.Paul Janzen
2002-05-23The troll strikes.. The troll strikes.. The dungeon master ↵Theo de Raadt
dies.distrib/sets/lists
2002-02-25fix buffer overflow in scanf; found by pjanzenPeter Valchev
2002-02-25handle EOF gracefully; ok pjanzenPeter Valchev
2002-02-24getchar fixes; ok pjanzenPeter Valchev
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-17section consistency: AUTHOR -> AUTHORS, even if only one listed;Paul Janzen
mpech@prosoft.org.lv
2001-09-19occured->occurred; from NetBSD via Mike Pechkin <mpech@prosoft.org.lv>.Paul Janzen
One of these was even in a string that got printed out.
2001-08-23recieve -> receiveAaron Campbell
2001-08-18FormattingPaul Janzen