747fb90407
Fix rev. 1.65.
2005-12-31 10:20:00 +00:00
027e9b5a34
(nat_ca): New selector dayno.
2005-12-31 10:03:06 +00:00
Ron Koenderink
27fe2e7be6
(prod): Add material limit for resource depletion to prod()
...
that is in place in the normal update sequence.
2005-12-31 02:42:55 +00:00
f7898f41e0
(ichr_ca): New selector melt_denom. Should have been done together
...
with item.h rev. 1.15.
(nuke_ca): Fix ca_table for selector types. Broken in rev. 1.50.
2005-12-30 17:32:55 +00:00
acd2c7c2a8
(cuto, show_mission): Fix justification of coordinate output.
2005-12-30 17:28:24 +00:00
498d9fbfaa
(M_SPY): Unused, remove.
2005-12-30 17:22:03 +00:00
a5b8249e98
(mkdir): Parenthesize macro parameter in expansion.
2005-12-30 17:21:42 +00:00
1969a3890a
(opt_UPDATESCHED): Remove nooption UPDATESCHED. It had no effect on
...
the actual update, only on the update command. Believed to be broken
since Empire2.
2005-12-29 13:38:57 +00:00
fb768e844c
Fix spelling of The_Scum's name.
2005-12-29 10:26:41 +00:00
fa52e6944d
Normalize inclusion guards: use NAME_H for name.h. Some headers
...
lacked them, others used reserved identifiers.
2005-12-29 10:16:01 +00:00
b316861e9d
Autoconfigure whether char is unsigned.
2005-12-28 23:10:26 +00:00
c9589a89fb
Fix the previous revision.
2005-12-28 23:07:24 +00:00
01624e9316
Fix rev. 1.29.
2005-12-28 23:06:14 +00:00
aff6cfcafe
src/lib/commands/sona.c rev. 1.6 changed first argument of
...
line_of_sight() to char *. The changeset failed to change callers.
Fix.
2005-12-28 22:43:39 +00:00
686eadad37
(att_mode, xyas, ownxy, prbuf): Get rid of s_char. Users changed.
...
(ATTRIBUTE): Don't disable use of gcc __attribute__ when s_char is
signed char. All format strings are now char *.
2005-12-28 22:30:52 +00:00
24a07cd249
player.h rev. 1.9 changed struct player member argp to char *. The
...
changeset failed to adapt some s_char * operands. Fix.
2005-12-28 22:21:42 +00:00
6fdbf215d0
Remove superflous includes.
2005-12-28 21:26:30 +00:00
0d267e0b24
There's no reason to include <time.h> in empio.h, except it's missing
...
in a couple of other files. Include it where it's needed.
2005-12-28 21:25:39 +00:00
3b90d0cb81
(PP_MAIN, PP_UPDATE, PP_SHUTDOWN, PP_SCHED, PP_TIMESTAMP, PP_PLAYER)
...
(PP_ACCEPT, PP_KILLIDLE): Move from player.h to empthread.h and turn
into enumeration constants.
2005-12-28 21:21:15 +00:00
8b0eae7594
Quiet the noise about files created and removed.
2005-12-28 19:36:17 +00:00
0dc0b29a92
Update for 4.3.0.
2005-12-28 19:21:09 +00:00
0772d47546
(login): Fix error messages.
2005-12-28 19:03:29 +00:00
19d88af312
Support for IPv6:
...
(tcp_listen, player_addrlen): New. IPv4-only code factored out of
player_init().
(player_init): Use them.
(player_accept): Address family independence.
(tcp_connect): New.
(main): Use it.
(hostaddr, hostconnect, hostport): Internal linkage.
2005-12-28 18:50:08 +00:00
75a511a749
(main, intr) [!_WIN32]: signal() is a portability headache. Switch to
...
sigaction().
2005-12-28 16:59:20 +00:00
1ec32d97c4
Fix the previous revision.
2005-12-28 16:38:19 +00:00
87ace6afe4
(handleintr): Move to main.c. Internal linkage. Remove empty
...
handle.c
(interrupt): Internal linkage.
(interrupt): Use proper type for access from signal handler.
(intr): Don't increment to set, it's unobvious and it could overflow.
2005-12-28 16:16:41 +00:00
5c02a0aefc
(UCONTEXT): Move to config.h.
2005-12-28 15:01:42 +00:00
69150d10fc
(EMPTH_LWP, EMPTH_POSIX, EMPTH_W32): Define in config.h instead of
...
compiler command line. Don't bother to conditionalize code in .c
files that are only compiled when their thread package is used.
(_EMPTH_LWP, EMPTH_LWP, _EMPTH_POSIX, EMPTH_POSIX, _EMPTH_WIN32)
(EMPTH_W32): Identifiers beginning with an underscore and an uppercase
letter are reserved for any use. Rename.
2005-12-28 14:27:15 +00:00
b921d3c262
(MAXNOC): Move to config.h. Remove empty options.h.
2005-12-28 13:08:26 +00:00
083f0ea350
(lwpInitSelect): The code to query the system's limit on file
...
descriptors was not portable. Simply use FD_SETSIZE instead. The
lower of the two applies, so this wastes storage if the system's limit
is significantly below FD_SETSIZE. Not an issue, as FD_SETSIZE is
fairly small.
(lwpSleepFd): Return if fd is too large. Returning isn't nice,
but better than the buffer overruns in the old code.
(lwpSelect): Member nfile unused, remove.
2005-12-27 19:22:07 +00:00
3aebb68ee7
Include config.h.
2005-12-27 18:04:19 +00:00
ea820f3b99
Fix missing include.
2005-12-27 17:56:57 +00:00
Ron Koenderink
233181c50d
(player_new, player_accept, update_wait, market_update) [_WIN32]:
...
Move assignment of hostaddr and hostname from player_new() to
player_accept(). This solves the necessary of adding the socket include
file to prototypes.h for player_new(). The socket include file creates
a namespace conflict for WIN32.
2005-12-26 03:53:21 +00:00
Ron Koenderink
9dfbf74785
[_WIN32]: Add #ifndef __GNUC__ around the pragma as pragma is not
...
supported by gcc.
2005-12-26 02:53:23 +00:00
ae24898e50
(opt_ALL_BLEED, opt_BIG_CITY, opt_BLITZ, opt_BRIDGETOWERS)
...
(opt_DEFENSE_INFRA, opt_DEMANDUPDATE, opt_DRNUKE, opt_EASY_BRIDGES)
(opt_FALLOUT, opt_FUEL, opt_GODNEWS, opt_GO_RENEW, opt_GUINEA_PIGS)
(opt_HIDDEN, opt_INTERDICT_ATT, opt_LANDSPIES, opt_LOANS)
(opt_LOSE_CONTACT, opt_MARKET, opt_MOB_ACCESS, opt_NOFOOD)
(opt_NOMOBCOST, opt_NO_FORT_FIRE, opt_NO_PLAGUE, opt_PINPOINTMISSILE)
(opt_RES_POP, opt_SAIL, opt_SHOWPLANE, opt_SLOW_WAR, opt_SUPER_BARS)
(opt_TECH_POP, opt_TRADESHIPS, opt_TREATIES, opt_UPDATESCHED):
Remove conditional initialization. Values unchanged.
(ALL_BLEED, BIG_CITY, BLITZ, BRIDGETOWERS, DEFENSE_INFRA)
(DEMANDUPDATE, DRNUKE, EASY_BRIDGES, FALLOUT, FUEL, GODNEWS, GO_RENEW)
(GUINEA_PIGS, HIDDEN, INTERDICT_ATT, LANDSPIES, LOANS, LOSE_CONTACT)
(MARKET, MOB_ACCESS, NOFOOD, NOMOBCOST, NO_FORT_FIRE, NO_PLAGUE)
(PINPOINTMISSILE, RES_POP, SAIL, SHOWPLANE, SLOW_WAR, SUPER_BARS)
(TECH_POP, TRADESHIPS, TREATIES, UPDATESCHED): Unused, remove.
2005-12-25 14:53:29 +00:00
ade510f787
Turn options into ordinary econfig keys:
...
(configkeys): Add options.
(KM_OPTION): New.
(vers): Find options in configkeys[] instead of Options[].
(xdump): Remove xdump opt syntax.
(xdopt): Remove.
(emp_config, print_config): Remove option special case.
(option_list, Options, setoption): Remove.
2005-12-25 10:32:50 +00:00
Ron Koenderink
373a08a0e0
(min, max) [_WIN32]: Change WIN32 to use windef.h.
...
It is present in both MSVC and MinGW environments.
(F_OK, W_OK, R_OK) [_WIN32]: Add #ifndef to allow
to operation in both MSVC and MinGW environments.
2005-12-25 00:59:57 +00:00
Ron Koenderink
8b934d615b
(hStdIn) [_WIN32]: Add extern to declaration.
2005-12-25 00:51:55 +00:00
a626ecc888
Fix rev. 1.4.
2005-12-24 14:36:41 +00:00
cc0c3e4f3f
(drop): A mining mission targeting land called pln_dropoff() instead
...
of pln_mine(). pln_dropoff() happens to do pretty much the right
thing, but...
(pln_mine): Refuse to mine land.
2005-12-23 19:37:52 +00:00
eb1134541a
(CPPFLAGS): Add -I., to find config.h. Remove -Iinclude, it's unused.
2005-12-23 18:47:41 +00:00
90def7cb85
(install, install-html): Implement. Closes #913154 .
...
(installdirs): New.
2005-12-23 17:58:19 +00:00
1bf21d048a
(info): TOP was missing.
2005-12-23 17:53:28 +00:00
ee1a17a402
Belatedly remove NUKEFAILDETONATE, NONUKES, NEUTRON, ORBIT, NO_LCMS,
...
NO_HCMS, NO_OIL.
Don't claim BLITZ implies NOFOOD.
2005-12-23 13:24:45 +00:00
3bbc91876f
(START_CASH, start_cash): Replace START_CASH by new econfig key
...
start_cash.
2005-12-23 11:16:23 +00:00
8e16ae9e43
Remove superflous #include "options.h".
2005-12-23 11:04:56 +00:00
874bb3348a
Fix rev. 1.1 for how_to_dep = depcomp.
2005-12-23 09:06:29 +00:00
Ron Koenderink
9b3e820d3a
(nat_cap, status): Use the new function influx() to determine
...
if a valid capital is present or not.
2005-12-23 01:10:07 +00:00
7b507bd1d5
Fix the previous revision.
2005-12-22 21:28:37 +00:00
ea93842927
(pln_equip): New mission argument 'm' for mining. 'd' is now for
...
cargo drops only. Callers changed.
2005-12-22 19:48:33 +00:00