summaryrefslogtreecommitdiffstats
path: root/sail/pl_main.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework the game startup so it uses curses nicely. There are now menusdholland2010-08-061-161/+39
| | | and stuff for picking scenarios and ships and all that.
* Rework curses handling.dholland2009-03-151-3/+4
| | | | | | | | | 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.
* Create some abstraction for sending messages.dholland2009-03-141-5/+5
| | | | | 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-141-3/+3
|
* Don't cast the return value of calloc().dholland2009-03-141-3/+3
|
* Lines <= 80 chars, remove trailing whitespace, other formatting adjustments.dholland2009-03-141-4/+3
| | | No functional change.
* Remove some unnecessary casts.dholland2009-03-141-4/+4
|
* String buffer cleanup. sprintf bad.dholland2009-03-141-4/+3
|
* 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.
* fix buffer overflow (CVE-2006-1744), from Debiandrochner2006-04-201-3/+3
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* remove redundant decls.christos2001-02-051-3/+2
|
* Break out curses display-related globals into a new header file, so thatjwise2001-01-041-2/+3
| | | <curses.h> doesn't have to be included all over the place.
* More rationalization of include files:jwise2001-01-041-2/+6
| | | | | | | | a.) Don't include a zillion system headers from "extern.h" (actually, don't include any). b.) Break a global jmp_buf variable into a new file, so <setjmp.h> doesn't have to be pulled in everywhere (it's only used in two places). The (one line) new file is (c) TNF with a three-clause license, FW(L)IW.
* Rationalize inclusion of header files: cut down on `include everythingjwise2001-01-041-5/+4
| | | | everywhere' a little (more to go), and as per KNF, local includes after system includes.
* Second half of static-ization of local funcs.jwise2001-01-041-3/+6
|
* De-`register'jwise2001-01-041-5/+5
|
* Missed commit -- ANSIfy in preparation for further work.jwise2001-01-011-27/+27
|
* Don't initialise curses until after the initial non-curses setup (thejsm2000-01-311-6/+2
| | | choice of scenario uses puts() rather than curses functions).
* The game sail(6) has a function Write() which is used both withhubertf1999-02-101-6/+7
| | | | | | | | | | | | integer arguments and with string arguments (cast to long, and in one place to int). The patch here cleans this up, making it into two separate functions; this allows for the game to be made const-correct in future and improves portability. The patch also contains two other fragments: a change to use the symbolic constant SEEK_END with fseek(), and a change to use snprintf in one place to avoid a buffer overrun. Via PR 6569 by Joseph Myers <jsm28@cam.ac.uk>.
* Warns fixes:christos1997-10-131-6/+9
| | | | | | use varargs properly use unsigned chars where appropriate fix typos eliminate gcc warnings
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-4/+4
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up import, NetBSD RCS IDscgd1995-04-221-4/+9
|
* fixed to use fgets()glass1994-01-131-2/+4
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+244