Commit graph

4484 commits

Author SHA1 Message Date
7c1e58b2e4 Updated from man/emp_client.6 rev. 1.7. 2004-12-21 13:40:47 +00:00
Marc Olzheim
c705b7a674 Update patch for src/server/main.c:1.29,include/prototypes.h:1.61 and
src/lib/commands/laun.c:1.9.  No functional changes.
2004-12-21 13:19:29 +00:00
75189a496d (main, start_sever): Previous revision broke POSIX threads under
Linux.  Undo the problematic bit of the change.
2004-12-21 12:29:51 +00:00
5202ef59cc Realign comment with its object; got separated in the previous rev.
No functional changes.
2004-12-21 12:26:30 +00:00
6ce77efd82 Fix rev. 1.5's placement of braces. No functional changes. 2004-12-21 12:23:01 +00:00
Ron Koenderink
537735f512 switched comment from // format to /* */ format. 2004-12-21 03:16:18 +00:00
Ron Koenderink
e342a73130 (main,close_files,loc_NT_Term,empth_exit):
Add Windows Service to the server.
This includes adding install service and remove service option.
Move the start code from main to separate function.
Make close_files() and loc_NT_Term() global.
Move disassoc() to be earlier in the startup sequence.
2004-12-21 03:10:30 +00:00
Ron Koenderink
99ad950d9c switch comments from // format to /* */ format. 2004-12-21 02:20:26 +00:00
Ron Koenderink
976749e5c0 [_WIN32] (panic): Unused under Windows, remove from build. 2004-12-21 01:56:57 +00:00
Ron Koenderink
3056684078 Change -2outfile to -2 outfile for both empire.6 and emp_client.6. 2004-12-20 23:29:46 +00:00
71a0ece0aa (panic): Instead of exiting successfully, commit suicide by re-raising
the signal.
2004-12-18 10:26:53 +00:00
e56ffad8be (termio): Fix crash bug: when input line starts with '?', `s' was used
uninitialized.

(buf, exec, termio): Make buf[] and exec[] local to termio().
2004-12-18 08:53:23 +00:00
8f74995e99 (NUKEFAILDETONATE, opt_NUKEFAILDETONATE, Options, msl_hit): Remove
option NUKEFAILDETONATE.
2004-12-17 19:45:33 +00:00
46608d6c83 (ORBIT, opt_ORBIT, Options, launch_sat, pdump, plan, prod_plane):
Remove nooption ORBIT.
2004-12-17 19:29:36 +00:00
Marc Olzheim
09b73000c2 "(turn): Fix comparing the output of write() to an unsigned sizeof by
casting the sizeof to write's most used return-type (ssize_t). Introduce
a typedef for ssize_t for WIN32."
2004-12-17 15:39:28 +00:00
0ad644b11b (info): Polish output for ambigous topic argument. 2004-12-17 13:58:10 +00:00
25d1a9d389 Canonicalize line endings. 2004-12-16 22:10:53 +00:00
473191301f (player_coms): Implement c_form for xdump and enable the command. 2004-12-16 22:08:03 +00:00
b0ce8c0253 (xdump): Fail unless GUINEA_PIGS is enabled. 2004-12-16 22:05:15 +00:00
bebf6a7de0 (GUINEA_PIGS, opt_GUINEA_PIGS, Options): New option GUINEA_PIGS. 2004-12-16 22:01:30 +00:00
0ac1b7707c (print_config): Undo rev. 1.17's incorrect simplification of
km_comment printing.
2004-12-16 21:56:17 +00:00
Ron Koenderink
2c4b89e2d1 (ac_calc_flak,ac_fireflak,pinflak_planedamage): New ac_calc_flak().
Move common flak damage code from ac_fireflak() and
pinflak_planedamage() to ac_calc_flak().
2004-12-16 19:40:06 +00:00
b6042b3b1f (comtch): Fix the previous rev. 2004-12-16 18:12:21 +00:00
Marc Olzheim
d9f0f475da (turn): Change the command to allow for both an MOTD and a no-login
message.  Clean 'register' and 's_char' remnants on the way.
Circumvents bug #813167.
2004-12-16 14:17:08 +00:00
Ron Koenderink
b3f62f7d66 (ship_bomb): Prevent bombing of subs that where not found by the ASW plane. 2004-12-16 12:42:53 +00:00
Marc Olzheim
d3396821f0 (ef_extend): free allocated tmpobj before early returns as well. 2004-12-16 12:29:41 +00:00
Marc Olzheim
e94b16b024 (EFF_COM,ef_items): No longer in use after removal of 'variables'. Removed.
Clean 'register' and s_char on the way. Remove dead code.
Rename some variables to better reflect their meaning.
Add function comments.
2004-12-16 12:25:56 +00:00
Marc Olzheim
b20ce77e4b (EFF_COM): No longer in use after removal of 'variables' 2004-12-16 12:21:08 +00:00
Ron Koenderink
042372d4c2 (have_looked,have_found,set_have_looked,set_have_found,print_found):
collapse to shiplist function set (add,free,print,on). Fix bug where ship
uid was a unsigned char instead of short.  Switch to head pointer instead
of head record with a linked list. Add a free().
2004-12-16 11:12:28 +00:00
Ron Koenderink
fd700f235b (getopt.h) move to src/lib/gen directory to prevent conflicts with
/usr/include/getopt.h.
2004-12-15 14:02:07 +00:00
Ron Koenderink
8a8bf00c5e (scuttle_tradeship): Remove carriage return. 2004-12-15 03:00:08 +00:00
Ron Koenderink
4c4dec738c (getopt): Remove carriage return. 2004-12-15 02:52:57 +00:00
Ron Koenderink
8280b7b201 (show_sect_build): Remove carriage return. 2004-12-15 02:51:08 +00:00
Ron Koenderink
e599f08a10 (upd_ship): Remove carriage return. 2004-12-15 02:48:47 +00:00
Marc Olzheim
1fbbccfe72 (prod): Fix bug #1083175. Use max_pop() not just when opt_RES_POP is
enabled to determine the new working population of a sector.
2004-12-14 19:45:47 +00:00
Marc Olzheim
7a593d9083 (orde,eta_calc): Remove unaccessed leftover variables nships,mcp.
No functional changes.
2004-12-14 17:47:03 +00:00
Marc Olzheim
0847b87afa (ship_bomb,land_bomb): Remove unaccessed leftover variables lcp,onsea.
No functional changes.
2004-12-14 17:43:54 +00:00
Marc Olzheim
44c273dd01 (resupply_commod,has_supply,use_supply): Remove unaccessed leftover
variables lcp.  No functional changes.
2004-12-14 17:40:59 +00:00
Marc Olzheim
61cb34b7ef (ac_airtoair): No need to pass def_own, as the owner of the intercepting
planes is used anyway.  Clean up other unaccessed variables in the process.
No functional changes.
2004-12-14 17:21:05 +00:00
Marc Olzheim
70e1ee220f (scut): Remove unaccessed remnants from before 1.1. No functional changes. 2004-12-13 17:36:43 +00:00
Marc Olzheim
d818036c0f Update patches for #include cleanup, changing offsets. No functional changes. 2004-12-13 17:01:07 +00:00
Marc Olzheim
c6ef918f3a Cleanup #includes of (mostly a long time) unused header files.
No functional changes.
2004-12-13 16:47:13 +00:00
Marc Olzheim
cb56cfb870 Only prototypes.h is needed, not all of gen.h. No functional changes. 2004-12-13 16:20:33 +00:00
Marc Olzheim
36441bbee8 Update patch for src/server/main.c:1.23. No functional changes. 2004-12-13 10:33:16 +00:00
Ron Koenderink
f9c5f2f70b (main): Remove the extern for optarg, get from include file. 2004-12-12 22:48:22 +00:00
Ron Koenderink
e7f67071db (do_plague): Remove the carriage return. 2004-12-12 19:46:28 +00:00
Ron Koenderink
4a6346b0df (sct_pstage, sct_ptime, shp_pstage, shp_ptime, lnd_pstage, lnd_ptime):
Use `short' instead of `unsigned short'.  With variables, plague stage
and time were stored unsigned and used signed, which worked.  Removal
of variables dropped the conversion to signed, which broke
plague_people() (plague.c rev. 1.6): stage didn't progress correctly
due to catastrophic underflow of time.
2004-12-12 19:39:35 +00:00
Ron Koenderink
03c96f90d8 (main): Remove the extern for optarg, get from include file.
(main): Cast getpid() to an int for printing.
2004-12-11 11:15:36 +00:00
Ron Koenderink
2f6fa7ec24 (main) [_WIN32]: Remove unneccessary #ifdef for srand,
use #define in misc.h.

(main): Remove unneccessary 'now' variable used for srand().
2004-12-10 11:21:52 +00:00
Ron Koenderink
6bab1fd0a3 (getopt) [_WIN32]: New for parsing command line arguments. 2004-12-10 02:19:30 +00:00