summaryrefslogtreecommitdiffstats
path: root/sail
Commit message (Collapse)AuthorAgeFilesLines
* Don't use variables as format string.joerg2011-05-231-4/+4
|
* Use __c99inline from sys/cdefs.hjoerg2010-12-082-42/+1
|
* Rework the game startup so it uses curses nicely. There are now menusdholland2010-08-067-200/+1125
| | | and stuff for picking scenarios and ships and all that.
* Don't define esc-[ as a custom key sequence because it steps on vtdholland2010-08-061-3/+5
| | | function keys.
* 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.
* Close file when finished with it. Found by cppcheck.wiz2010-01-171-2/+3
|
* sprinkle staticdholland2009-08-125-15/+14
|
* Simplify previous; suggested by Paul Goyettedholland2009-03-151-4/+4
|
* Fix sign-compare problem that crept in due to working from an old tree.dholland2009-03-151-3/+4
| | | Whoops. won't happen again...
* Rework curses handling.dholland2009-03-1512-133/+688
| | | | | | | | | The most visible change is that the scrolling buffer of messages now actually scrolls and keeps history, and you type on the bottom line only. For now you can page through the history with ^P/^N; that's not ideal but one can't fix everything all at once. Use resizeable array code (roughly the same that I floated a while ago in connection with make) to hold the scroll.
* Move newturn() from pl_7 to pl_2.dholland2009-03-153-64/+89
| | | | pl_7 was mostly curses/display stuff, is going to be all display stuff. pl_2 is where the main loop lives.
* Move all curses bits to pl_7.c.dholland2009-03-153-43/+64
|
* Fix usage messagedholland2009-03-141-3/+3
|
* chdir to /var/games/sail while running, to simplify name handling.dholland2009-03-143-19/+54
|
* Don't crosswire the two kinds of path names, and don't croak ondholland2009-03-141-4/+4
| | | scenario numbers > 99.
* Turns out the W_FILE message wasn't ever used.dholland2009-03-142-19/+4
|
* Create some abstraction for sending messages.dholland2009-03-1416-341/+843
| | | | | Make a send and receive function for each possible message. Make these have useful argument signatures. Hide the list of message codes inside sync.c.
* Don't use perror()dholland2009-03-143-12/+10
|
* constify the version stringdholland2009-03-142-5/+5
|
* Sprinkle some "bool". And don't use '\0' to mean 'false'.dholland2009-03-145-20/+22
|
* Use \a instead of \7 for BEL.dholland2009-03-142-7/+7
|
* Prune a comment referring to objects that (AFAICT) didn't even exist in -r1.1.dholland2009-03-141-6/+2
|
* Don't cast the return value of calloc().dholland2009-03-142-6/+6
|
* Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.dholland2009-03-1418-192/+253
| | | No functional change.
* Remove some unnecessary casts.dholland2009-03-144-17/+17
|
* String buffer cleanup. sprintf bad.dholland2009-03-147-48/+53
|
* Don't use char for random state variables; use int or bool.dholland2009-03-141-6/+7
|
* sprintf -> snprintfdholland2009-03-091-5/+8
|
* Move HISTORY to proper place.dholland2009-03-021-57/+58
|
* Edit. Sync with reality, at least partway. Bump date.dholland2009-03-021-129/+173
|
* Sort options. End sentence with a dot.wiz2009-03-021-8/+7
|
* mdocify. Partly merged from OpenBSD. Not by any means perfect yet.dholland2009-03-021-410/+527
|
* More fixes from OpenBSD: use err instead of perror, don't hork on EOFdholland2009-03-021-11/+15
| | | during the initial setup questions.
* Check for failure of fgets when reading the captain's name, and don'tdholland2009-03-021-4/+5
| | | allow it to be empty. From OpenBSD.
* Use errx() to send fatal error messages. From OpenBSD.dholland2009-03-021-4/+4
|
* Use errx/warnx instead of printing to stderr. From OpenBSD.dholland2009-03-021-5/+5
|
* Use err(3) and errx(3), not perror and fprintf to stderr. From OpenBSD.dholland2009-03-021-6/+5
|
* Braces around a nested if, for clarity; suggested by diffing against OpenBSD.dholland2009-03-021-4/+4
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Remove clause 3 and 4 from TNF licensesmartin2008-04-282-16/+2
|
* Make the default WARNS for games 4. The only game that needs to set WARNSdholland2008-01-281-2/+1
| | | to anything else now is rogue, so clear WARNS from the other makefiles.
* Build with WARNS=4. Sort out the game's shadowing of its own variables,dholland2008-01-287-66/+68
| | | which fixes at least one bug.
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-152-7/+7
|
* don't try to switch a char and have a case of EOF - use an int.mrg2006-05-181-3/+7
|
* fix buffer overflow (CVE-2006-1744), from Debiandrochner2006-04-201-3/+3
|
* Coverity CID 980: Prevent an impossible NULL point deref.christos2006-03-191-3/+3
|
* If none of the boarding parties are set do not fall off the end of theabs2006-03-182-5/+5
| | | | list. Addresses Coverity CID 1507. Also put pointers before shorts in a struct rather than mixing them up
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-2/+2
| | | Sort sections if necessary. Use more/better markup.
* Add (unsigned char) cast to ctype functionsdsl2004-11-054-13/+12
|
* Replaced strncpy with strlcpy. Thanks to Peter Postma whojrf2004-09-072-13/+9
| | | pointed them our in PR #25762. Approved by christos@NetBSD.org.