Ron Koenderink
667b137216
(new) [_WIN32]: Rely on misc.h to provide BSD random functions.
2004-12-30 13:57:04 +00:00
Ron Koenderink
7a95982a21
(multifire) [_WIN32]: Rely on misc.h to provide BSD random functions.
...
(multifire): switch the random seeding with the current random
value to seeding with the current time. Seeding with the
current random value does not actually improve the randomness.
2004-12-30 13:53:46 +00:00
Ron Koenderink
b3ec8c14da
The previous rev. was committed accidentally, revert.
2004-12-30 02:51:12 +00:00
Ron Koenderink
70fcb70707
(main,install_service,remove_service,service_main) [_WIN32]:
...
Add the ability to specify the service name, to install
multiple services and to set -D and -e options during install.
2004-12-30 02:19:44 +00:00
Ron Koenderink
cc1a92e512
(rea): Code cleanup.
2004-12-30 01:43:39 +00:00
Ron Koenderink
1a8488bc45
(main,mobility_check,upda,turn,rea,mobupdate,ef_open,logerror,
...
emp_config,gamedown,show_motd,match_user,typed_wu,
delete_old_announcements) [_WIN32]: switch the default file mode to
binary to match POSIX. Remove the now unneccessary ifdef for
the open/fopen. Add text mode for user files (econfig/auth).
2004-12-30 01:31:03 +00:00
Ron Koenderink
f6e78f4589
(main,ef_open) [_WIN32]: switch the default file mode to
...
binary to match POSIX. Remove the now unneccessary ifdef for
the open.
2004-12-29 23:40:04 +00:00
Ron Koenderink
c3ac61e1e4
(main,allocate_memory) [_WIN32]: switch the default file mode to
...
binary to match POSIX. Remove the now unneccessary ifdef for
the open.
2004-12-29 23:34:08 +00:00
Ron Koenderink
331aac2afa
(main) [_WIN32]: remove getpid() from the random seed as
...
it did not improve the randomness of the seed.
2004-12-29 23:20:24 +00:00
Ron Koenderink
f6666518c7
(main): switch to use standard srandom() and random().
...
Remove the SRANDOM and RANDOM defines.
2004-12-29 23:15:04 +00:00
Ron Koenderink
750f351a94
(parse_args): fix the print usage for script file name to print the
...
default instead of the current file name as per the description.
2004-12-29 23:01:43 +00:00
Ron Koenderink
2629b92102
(main) [_WIN32]: enable command line options for WIN32.
2004-12-29 22:52:05 +00:00
d2ae708dea
Update for 4.2.19.
2004-12-23 20:42:39 +00:00
970ffc72fd
Indentation fix.
2004-12-21 20:09:14 +00:00
7c1e58b2e4
Updated from man/emp_client.6 rev. 1.7.
2004-12-21 13:40:47 +00:00
77a74e2ef7
Fix spelling of daemon, for crying out loud!
...
Remove irrelevant information on player thread.
Clarify that -d makes the server abort on internal errors.
2004-12-21 13:27:36 +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
cf37a9f2f6
Fix typesetting of option arguments.
...
Fix English in section authors.
2004-12-21 13:16:46 +00:00
e019a3dc63
Really fix typesetting of option arguments.
2004-12-21 13:06:32 +00:00
479c0471fe
Move arguments behind options in the synopsis.
...
Fix typesetting of option arguments.
Document environment variables more clearly, and without assuming csh
syntax.
2004-12-21 12:48:46 +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
63ea309bd0
Explain that -s and -p imply -d.
2004-12-21 03:22:10 +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
Ron Koenderink
dc9ce448db
(main, termio): Add the ability to set the username.
...
Get it from environment variable LOGNAME if set,
else get the user name from the system.
(main) [_DWIN32]: Add stdin redirection ability to the Win32 port.
The client reads until stdin redirection empty and then terminates.
2004-12-19 18:17:56 +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
a2284aac8d
"(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 in include/misc.h."
2004-12-17 15:44:57 +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
5686a080ce
Belatedly remove ROLLOVER_AVAIL.
2004-12-16 23:13:06 +00:00
83645f8533
(GUINEA_PIGS, opt_GUINEA_PIGS, Options): New option GUINEA_PIGS.
2004-12-16 23:11:59 +00:00
dc37f1b1f4
Initial version; needs work.
2004-12-16 22:17:02 +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
0e7af91e5e
Belatedly remove ROLLOVER_AVAIL and PLANENAMES.
2004-12-16 20:47:49 +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
Ron Koenderink
3645ee77c8
(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().
Remove carriage return from comment.
2004-12-16 19:28:17 +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