]> git.pond.sub.org Git - empserver/log
empserver
18 years agoStreamline copyright notices. Clearly document Stephen Crane's in
Markus Armbruster [Thu, 5 Jan 2006 13:58:03 +0000 (13:58 +0000)]
Streamline copyright notices.  Clearly document Stephen Crane's in
README.

18 years agoSplit info.pl into findsubj.pl, mksubj.pl, mktop.pl.
Markus Armbruster [Thu, 5 Jan 2006 13:40:19 +0000 (13:40 +0000)]
Split info.pl into findsubj.pl, mksubj.pl, mktop.pl.

18 years agoUpdate copyright notice.
Markus Armbruster [Thu, 5 Jan 2006 13:36:57 +0000 (13:36 +0000)]
Update copyright notice.

18 years ago(EF_NATION_STATUS, nation_status): New.
Markus Armbruster [Wed, 4 Jan 2006 23:15:47 +0000 (23:15 +0000)]
(EF_NATION_STATUS, nation_status): New.
(empfile): Add it.
(nat_ca): Use it.

18 years agoFix the previous revision.
Markus Armbruster [Wed, 4 Jan 2006 23:11:44 +0000 (23:11 +0000)]
Fix the previous revision.

18 years agoChange nation status from bits to a simple enum:
Markus Armbruster [Wed, 4 Jan 2006 22:49:42 +0000 (22:49 +0000)]
Change nation status from bits to a simple enum:
(nat_status, STAT_UNUSED, STAT_VIS, STAT_ACTIVE): New.
(STAT_NEW, STAT_SANCT, STAT_GOD): Change into nat_status members.
(STAT_INUSE, STAT_NORM): Remove.
(natstr): Use new nat_status for nat_stat.
    New value       Old value
    STAT_UNUSED     0
    STAT_NEW        STAT_INUSE | STAT_NEW
    STAT_VIS        STAT_INUSE
    STAT_SANCT      STAT_INUSE | STAT_SANCT
    STAT_ACTIVE     STAT_INUSE | STAT_NORM
    STAT_GOD        STAT_INUSE | STAT_NORM | STAT_GOD
Users changed.

18 years ago(powe): Simplify.
Markus Armbruster [Wed, 4 Jan 2006 22:04:52 +0000 (22:04 +0000)]
(powe): Simplify.

18 years agoSome s_char killings.
Markus Armbruster [Wed, 4 Jan 2006 21:40:30 +0000 (21:40 +0000)]
Some s_char killings.

18 years ago(docountry): Telex country on nat_reserve editing unconditionally.
Markus Armbruster [Wed, 4 Jan 2006 21:25:23 +0000 (21:25 +0000)]
(docountry): Telex country on nat_reserve editing unconditionally.
The condition was never true due to a coding mistake.  Other edits
don't have such conditions.

18 years ago(comtch): Parameter god permitted execution of any command, even when
Markus Armbruster [Wed, 4 Jan 2006 19:12:44 +0000 (19:12 +0000)]
(comtch): Parameter god permitted execution of any command, even when
com->c_permit disagreed.  Doesn't make sense and is inconsistent with
output of list.  Remove parameter.  The only command affected is
break.

18 years ago(explain): Part of the argument explanation was suppressed under a
Markus Armbruster [Wed, 4 Jan 2006 18:45:42 +0000 (18:45 +0000)]
(explain): Part of the argument explanation was suppressed under a
weird condition (visitor or sanctuary, neither money nor capital).
Don't.

18 years ago(update_removewants): Clearing WUPD_WANT trashed all the other bits.
Markus Armbruster [Wed, 4 Jan 2006 18:28:50 +0000 (18:28 +0000)]
(update_removewants): Clearing WUPD_WANT trashed all the other bits.
They are currently unused.

18 years ago(status): Enforce m_m_p_d only for active countries, not for deities,
Markus Armbruster [Wed, 4 Jan 2006 17:58:16 +0000 (17:58 +0000)]
(status): Enforce m_m_p_d only for active countries, not for deities,
visitors and such.

18 years ago(demand_check): Slight simplification.
Markus Armbruster [Wed, 4 Jan 2006 16:48:43 +0000 (16:48 +0000)]
(demand_check): Slight simplification.

18 years ago(orig): Allow moving origin to another country's origin. This is a
Markus Armbruster [Wed, 4 Jan 2006 14:36:21 +0000 (14:36 +0000)]
(orig): Allow moving origin to another country's origin.  This is a
superset of the offset command.
(offs): Redundant, underdocumented, remove.

(orig): Allow deities to reset origin to absolute 0,0.

18 years ago(STAT_ABS): Only set by files program for country #0. Prevents offset
Markus Armbruster [Wed, 4 Jan 2006 14:27:10 +0000 (14:27 +0000)]
(STAT_ABS): Only set by files program for country #0.  Prevents offset
and origin commands from working.  Remove.

18 years ago(termio) [_WIN32]: Add a variable (record) to match the pointer type
Ron Koenderink [Wed, 4 Jan 2006 03:30:04 +0000 (03:30 +0000)]
(termio) [_WIN32]: Add a variable (record) to match the pointer type
for console functions.  Add error checks for console functions.

18 years agoFix the previous revision.
Markus Armbruster [Tue, 3 Jan 2006 19:07:53 +0000 (19:07 +0000)]
Fix the previous revision.

18 years ago(xdvisible): New.
Markus Armbruster [Tue, 3 Jan 2006 17:07:41 +0000 (17:07 +0000)]
(xdvisible): New.
(xditem): Use it.  This plugs all known information leaks.  It also
avoids dumping of unused records.

18 years ago(main) [_WIN32]: Fix logerror format to "lu" for GetLastError().
Ron Koenderink [Sun, 1 Jan 2006 20:43:37 +0000 (20:43 +0000)]
(main) [_WIN32]: Fix logerror format to "lu" for GetLastError().

18 years ago(service_ctrl_handler) [_WIN32]: Add static declaration.
Ron Koenderink [Sun, 1 Jan 2006 20:41:45 +0000 (20:41 +0000)]
(service_ctrl_handler) [_WIN32]: Add static declaration.
Fix logerror format to "lu" for GetLastError().

18 years ago(tcp_listen) [_WIN32]: Move the undef NS_ALL to after include winsock2.h.
Ron Koenderink [Sun, 1 Jan 2006 20:38:21 +0000 (20:38 +0000)]
(tcp_listen) [_WIN32]: Move the undef NS_ALL to after include winsock2.h.
The undef is present to prevent namespace conflict the selector code.

18 years ago(tcp_listen) [_WIN32]: Add the WIN32 include files for accessing
Ron Koenderink [Sun, 1 Jan 2006 20:27:24 +0000 (20:27 +0000)]
(tcp_listen) [_WIN32]: Add the WIN32 include files for accessing
the socket functions.

(tcp_listen): Add prototypes.h to verify the extern prototype.

18 years ago(loc_RunThisThread, loc_BlockThisThread) [_WIN32]:
Ron Koenderink [Sun, 1 Jan 2006 20:23:51 +0000 (20:23 +0000)]
(loc_RunThisThread, loc_BlockThisThread) [_WIN32]:
Add void to parameter declarations.

(empth_threadMain) [_WIN32]: Add static declaration for the function.

(empth_init) [_WIN32]: Change the format "lu" for GetLastError()
in logerror() calls.

18 years ago(ioq_makebuf, ioq_makeiov) [_WIN32]: Remove the external for
Ron Koenderink [Sun, 1 Jan 2006 20:02:09 +0000 (20:02 +0000)]
(ioq_makebuf, ioq_makeiov) [_WIN32]: Remove the external for
ioq_makeiov() for WIN32 case so it matches source for the
ioq_makeiov().  Reorganize ioq_makebuf() to make it obvious that
ioq_makebuf() is used for WIN32 and everybody uses ioq_makeiov().

18 years ago(info) [_WIN32]: Add brackets to ensure the right combination of
Ron Koenderink [Sun, 1 Jan 2006 19:55:53 +0000 (19:55 +0000)]
(info) [_WIN32]: Add brackets to ensure the right combination of
ORs and ANDs.

(apro) [_WIN32]: Remove space to fix formatting for logerror().
Fix printing type for lhitlim in the format string for logerror() call.

18 years ago(info, apro) [_WIN32]: Correct parameter order for calls
Ron Koenderink [Sun, 1 Jan 2006 19:47:46 +0000 (19:47 +0000)]
(info, apro) [_WIN32]: Correct parameter order for calls
to logerror() where GetLastError() is used.
Change the format to "lu" for printing GetLastError().

18 years ago(verify_row): Add cast to an int for a call to sizeof().
Ron Koenderink [Sun, 1 Jan 2006 19:32:52 +0000 (19:32 +0000)]
(verify_row): Add cast to an int for a call to sizeof().
This removes a warning.

18 years ago(disassoc) [_WIN32]: Add #ifndef _WIN32 around disassoc() as
Ron Koenderink [Sun, 1 Jan 2006 19:29:12 +0000 (19:29 +0000)]
(disassoc) [_WIN32]: Add #ifndef _WIN32 around disassoc() as
WIN32 does not use it and does not support fork().

18 years ago(min, max) [_WIN32, __GNUC__]: Add min and max macros for
Ron Koenderink [Sun, 1 Jan 2006 16:02:48 +0000 (16:02 +0000)]
(min, max) [_WIN32, __GNUC__]: Add min and max macros for
mingw/gcc compile environment.  min/max are not included
in stdlib.h in mingw/gcc environment.

18 years ago(empth_threadMain) [_WIN32]: Add include file for time().
Ron Koenderink [Sun, 1 Jan 2006 15:56:35 +0000 (15:56 +0000)]
(empth_threadMain) [_WIN32]: Add include file for time().

18 years ago(xundump): Add the ability to support the parsing of the human
Ron Koenderink [Sun, 1 Jan 2006 03:44:41 +0000 (03:44 +0000)]
(xundump): Add the ability to support the parsing of the human
readable form.

(xucolumnheader): New function.

18 years ago(xundump): Move the header parsing into a separate function xuheader().
Ron Koenderink [Sun, 1 Jan 2006 03:37:36 +0000 (03:37 +0000)]
(xundump): Move the header parsing into a separate function xuheader().
Move the trailer parsing into a separate function xutrailer().

(xuheader, xutrailer): New functions.

18 years ago(ac_flak_dam): Fix FLAK_MAX to be last element of the array.
Ron Koenderink [Sat, 31 Dec 2005 22:37:51 +0000 (22:37 +0000)]
(ac_flak_dam): Fix FLAK_MAX to be last element of the array.
This fixes >8 case which was accessing one past the last element
of the array and getting an invalid value for flak max.
Broken in rev. 1.18

18 years ago(empfile, fileinit, lnd_init, lnd_postread, lnd_prewrite, nuk_init)
Markus Armbruster [Sat, 31 Dec 2005 12:52:18 +0000 (12:52 +0000)]
(empfile, fileinit, lnd_init, lnd_postread, lnd_prewrite, nuk_init)
(nuk_postread, nuk_prewrite, pln_init, pln_postread, pln_prewrite)
(sct_postread, sct_prewrite, shp_init, shp_postread, shp_prewrite)
(ef_extend): Use void * for generic pointer parameter.

18 years ago(natstr): Members nat_xstart, nat_ystart are used write-only. Remove.
Markus Armbruster [Sat, 31 Dec 2005 10:50:24 +0000 (10:50 +0000)]
(natstr): Members nat_xstart, nat_ystart are used write-only.  Remove.
Users changed.

18 years ago(EF_RESOURCES, resources): New.
Markus Armbruster [Sat, 31 Dec 2005 10:29:32 +0000 (10:29 +0000)]
(EF_RESOURCES, resources): New.
(empfile): Add it.
(pchr_ca): Use it.

18 years agoFix rev. 1.65.
Markus Armbruster [Sat, 31 Dec 2005 10:20:00 +0000 (10:20 +0000)]
Fix rev. 1.65.

18 years ago(nat_ca): New selector dayno.
Markus Armbruster [Sat, 31 Dec 2005 10:03:06 +0000 (10:03 +0000)]
(nat_ca): New selector dayno.

18 years ago(prod): Add material limit for resource depletion to prod()
Ron Koenderink [Sat, 31 Dec 2005 02:42:55 +0000 (02:42 +0000)]
(prod): Add material limit for resource depletion to prod()
that is in place in the normal update sequence.

18 years ago(ichr_ca): New selector melt_denom. Should have been done together
Markus Armbruster [Fri, 30 Dec 2005 17:32:55 +0000 (17:32 +0000)]
(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.

18 years ago(cuto, show_mission): Fix justification of coordinate output.
Markus Armbruster [Fri, 30 Dec 2005 17:28:24 +0000 (17:28 +0000)]
(cuto, show_mission): Fix justification of coordinate output.

18 years ago(M_SPY): Unused, remove.
Markus Armbruster [Fri, 30 Dec 2005 17:22:03 +0000 (17:22 +0000)]
(M_SPY): Unused, remove.

18 years ago(mkdir): Parenthesize macro parameter in expansion.
Markus Armbruster [Fri, 30 Dec 2005 17:21:42 +0000 (17:21 +0000)]
(mkdir): Parenthesize macro parameter in expansion.

18 years ago(opt_UPDATESCHED): Remove nooption UPDATESCHED. It had no effect on
Markus Armbruster [Thu, 29 Dec 2005 13:38:57 +0000 (13:38 +0000)]
(opt_UPDATESCHED): Remove nooption UPDATESCHED.  It had no effect on
the actual update, only on the update command.  Believed to be broken
since Empire2.

18 years agoFix spelling of The_Scum's name.
Markus Armbruster [Thu, 29 Dec 2005 10:26:41 +0000 (10:26 +0000)]
Fix spelling of The_Scum's name.

18 years agoNormalize inclusion guards: use NAME_H for name.h. Some headers
Markus Armbruster [Thu, 29 Dec 2005 10:16:01 +0000 (10:16 +0000)]
Normalize inclusion guards: use NAME_H for name.h.  Some headers
lacked them, others used reserved identifiers.

18 years agoAutoconfigure whether char is unsigned.
Markus Armbruster [Wed, 28 Dec 2005 23:10:26 +0000 (23:10 +0000)]
Autoconfigure whether char is unsigned.

18 years agoFix the previous revision.
Markus Armbruster [Wed, 28 Dec 2005 23:07:24 +0000 (23:07 +0000)]
Fix the previous revision.

18 years agoFix rev. 1.29.
Markus Armbruster [Wed, 28 Dec 2005 23:06:14 +0000 (23:06 +0000)]
Fix rev. 1.29.

18 years agosrc/lib/commands/sona.c rev. 1.6 changed first argument of
Markus Armbruster [Wed, 28 Dec 2005 22:43:39 +0000 (22:43 +0000)]
src/lib/commands/sona.c rev. 1.6 changed first argument of
line_of_sight() to char *.  The changeset failed to change callers.
Fix.

18 years ago(att_mode, xyas, ownxy, prbuf): Get rid of s_char. Users changed.
Markus Armbruster [Wed, 28 Dec 2005 22:30:52 +0000 (22:30 +0000)]
(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 *.

18 years agoplayer.h rev. 1.9 changed struct player member argp to char *. The
Markus Armbruster [Wed, 28 Dec 2005 22:21:42 +0000 (22:21 +0000)]
player.h rev. 1.9 changed struct player member argp to char *.  The
changeset failed to adapt some s_char * operands.  Fix.

18 years agoRemove superflous includes.
Markus Armbruster [Wed, 28 Dec 2005 21:26:30 +0000 (21:26 +0000)]
Remove superflous includes.

18 years agoThere's no reason to include <time.h> in empio.h, except it's missing
Markus Armbruster [Wed, 28 Dec 2005 21:25:39 +0000 (21:25 +0000)]
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.

18 years ago(PP_MAIN, PP_UPDATE, PP_SHUTDOWN, PP_SCHED, PP_TIMESTAMP, PP_PLAYER)
Markus Armbruster [Wed, 28 Dec 2005 21:21:15 +0000 (21:21 +0000)]
(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.

18 years agoQuiet the noise about files created and removed.
Markus Armbruster [Wed, 28 Dec 2005 19:36:17 +0000 (19:36 +0000)]
Quiet the noise about files created and removed.

18 years agoUpdate for 4.3.0.
Markus Armbruster [Wed, 28 Dec 2005 19:21:09 +0000 (19:21 +0000)]
Update for 4.3.0.

18 years ago(login): Fix error messages.
Markus Armbruster [Wed, 28 Dec 2005 19:03:29 +0000 (19:03 +0000)]
(login): Fix error messages.

18 years agoSupport for IPv6:
Markus Armbruster [Wed, 28 Dec 2005 18:50:08 +0000 (18:50 +0000)]
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.

18 years ago(main, intr) [!_WIN32]: signal() is a portability headache. Switch to
Markus Armbruster [Wed, 28 Dec 2005 16:59:20 +0000 (16:59 +0000)]
(main, intr) [!_WIN32]: signal() is a portability headache.  Switch to
sigaction().

18 years agoFix the previous revision.
Markus Armbruster [Wed, 28 Dec 2005 16:38:19 +0000 (16:38 +0000)]
Fix the previous revision.

18 years ago(handleintr): Move to main.c. Internal linkage. Remove empty
Markus Armbruster [Wed, 28 Dec 2005 16:16:41 +0000 (16:16 +0000)]
(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.

18 years ago(UCONTEXT): Move to config.h.
Markus Armbruster [Wed, 28 Dec 2005 15:01:42 +0000 (15:01 +0000)]
(UCONTEXT): Move to config.h.

18 years ago(EMPTH_LWP, EMPTH_POSIX, EMPTH_W32): Define in config.h instead of
Markus Armbruster [Wed, 28 Dec 2005 14:27:15 +0000 (14:27 +0000)]
(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.

18 years ago(MAXNOC): Move to config.h. Remove empty options.h.
Markus Armbruster [Wed, 28 Dec 2005 13:08:26 +0000 (13:08 +0000)]
(MAXNOC): Move to config.h.  Remove empty options.h.

18 years ago(lwpInitSelect): The code to query the system's limit on file
Markus Armbruster [Tue, 27 Dec 2005 19:22:07 +0000 (19:22 +0000)]
(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.

18 years agoInclude config.h.
Markus Armbruster [Tue, 27 Dec 2005 18:04:19 +0000 (18:04 +0000)]
Include config.h.

18 years agoFix missing include.
Markus Armbruster [Tue, 27 Dec 2005 17:56:57 +0000 (17:56 +0000)]
Fix missing include.

18 years ago(player_new, player_accept, update_wait, market_update) [_WIN32]:
Ron Koenderink [Mon, 26 Dec 2005 03:53:21 +0000 (03:53 +0000)]
(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.

18 years ago[_WIN32]: Add #ifndef __GNUC__ around the pragma as pragma is not
Ron Koenderink [Mon, 26 Dec 2005 02:53:23 +0000 (02:53 +0000)]
[_WIN32]: Add #ifndef __GNUC__ around the pragma as pragma is not
supported by gcc.

18 years ago(opt_ALL_BLEED, opt_BIG_CITY, opt_BLITZ, opt_BRIDGETOWERS)
Markus Armbruster [Sun, 25 Dec 2005 14:53:29 +0000 (14:53 +0000)]
(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.

18 years agoTurn options into ordinary econfig keys:
Markus Armbruster [Sun, 25 Dec 2005 10:32:50 +0000 (10:32 +0000)]
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.

18 years ago(min, max) [_WIN32]: Change WIN32 to use windef.h.
Ron Koenderink [Sun, 25 Dec 2005 00:59:57 +0000 (00:59 +0000)]
(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.

18 years ago(hStdIn) [_WIN32]: Add extern to declaration.
Ron Koenderink [Sun, 25 Dec 2005 00:51:55 +0000 (00:51 +0000)]
(hStdIn) [_WIN32]: Add extern to declaration.

18 years agoFix rev. 1.4.
Markus Armbruster [Sat, 24 Dec 2005 14:36:41 +0000 (14:36 +0000)]
Fix rev. 1.4.

18 years ago(drop): A mining mission targeting land called pln_dropoff() instead
Markus Armbruster [Fri, 23 Dec 2005 19:37:52 +0000 (19:37 +0000)]
(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.

18 years ago(CPPFLAGS): Add -I., to find config.h. Remove -Iinclude, it's unused.
Markus Armbruster [Fri, 23 Dec 2005 18:47:41 +0000 (18:47 +0000)]
(CPPFLAGS): Add -I., to find config.h.  Remove -Iinclude, it's unused.

18 years ago(install, install-html): Implement. Closes #913154.
Markus Armbruster [Fri, 23 Dec 2005 17:58:19 +0000 (17:58 +0000)]
(install, install-html): Implement.  Closes #913154.
(installdirs): New.

18 years ago(info): TOP was missing.
Markus Armbruster [Fri, 23 Dec 2005 17:53:28 +0000 (17:53 +0000)]
(info): TOP was missing.

18 years agoBelatedly remove NUKEFAILDETONATE, NONUKES, NEUTRON, ORBIT, NO_LCMS,
Markus Armbruster [Fri, 23 Dec 2005 13:24:45 +0000 (13:24 +0000)]
Belatedly remove NUKEFAILDETONATE, NONUKES, NEUTRON, ORBIT, NO_LCMS,
NO_HCMS, NO_OIL.

Don't claim BLITZ implies NOFOOD.

18 years ago(START_CASH, start_cash): Replace START_CASH by new econfig key
Markus Armbruster [Fri, 23 Dec 2005 11:16:23 +0000 (11:16 +0000)]
(START_CASH, start_cash): Replace START_CASH by new econfig key
start_cash.

18 years agoRemove superflous #include "options.h".
Markus Armbruster [Fri, 23 Dec 2005 11:04:56 +0000 (11:04 +0000)]
Remove superflous #include "options.h".

18 years agoFix rev. 1.1 for how_to_dep = depcomp.
Markus Armbruster [Fri, 23 Dec 2005 09:06:29 +0000 (09:06 +0000)]
Fix rev. 1.1 for how_to_dep = depcomp.

18 years ago(nat_cap, status): Use the new function influx() to determine
Ron Koenderink [Fri, 23 Dec 2005 01:10:07 +0000 (01:10 +0000)]
(nat_cap, status): Use the new function influx() to determine
if a valid capital is present or not.

18 years agoFix the previous revision.
Markus Armbruster [Thu, 22 Dec 2005 21:28:37 +0000 (21:28 +0000)]
Fix the previous revision.

18 years ago(pln_equip): New mission argument 'm' for mining. 'd' is now for
Markus Armbruster [Thu, 22 Dec 2005 19:48:33 +0000 (19:48 +0000)]
(pln_equip): New mission argument 'm' for mining.  'd' is now for
cargo drops only.  Callers changed.

18 years agoPrevious rev. assumes would_abandon() returns 0 or 1. Correct, but
Markus Armbruster [Thu, 22 Dec 2005 19:27:26 +0000 (19:27 +0000)]
Previous rev. assumes would_abandon() returns 0 or 1.  Correct, but
unmodular.  Don't.

18 years agoAvoid compiler warnings in rev. 1.23 code.
Markus Armbruster [Thu, 22 Dec 2005 17:57:16 +0000 (17:57 +0000)]
Avoid compiler warnings in rev. 1.23 code.

18 years ago(nat_cap): Scale BTU production by capital's work.
Ron Koenderink [Thu, 22 Dec 2005 17:26:54 +0000 (17:26 +0000)]
(nat_cap): Scale BTU production by capital's work.
Closes #101189.

18 years agoChapters Introduction and Server are also subjects, and all pages in
Markus Armbruster [Thu, 22 Dec 2005 12:23:38 +0000 (12:23 +0000)]
Chapters Introduction and Server are also subjects, and all pages in
those chapters should refer to their chapter-subject.  Check & fix.

18 years ago(info, html): Implement.
Markus Armbruster [Thu, 22 Dec 2005 10:09:17 +0000 (10:09 +0000)]
(info, html): Implement.
(all): Depend on info.

Flatten info directory.  This undoes the move to one subdirectory per
chapter, which was done during Empire 2.  The structure doesn't buy us
much, as the info name space is flat, and it complicates makefiles.

Overhaul info.pl:
- It now wants to run in the root of the build tree.
- Information on source files and subjects is now stored in makefiles,
  thus info.pl no longer picks up random junk from the file system.
- Clean up Perl anachronisms, in particular use subroutine arguments and
  results rather than global variables where convenient.
- Change format of diagnostics to the common format used by GNU tools,
  so that Emacs and the like can parse it.
- Catch missing .SA.
- When creating a new subject file, cowardly refuse to overwrite an
  existing file.
- Subject files contain topics sorted by chapter, then by name.  The
  order of chapters used to depend on how Perl sorts hash keys.  Fix
  it.

18 years agoShould have been removed in yesterday's build process commit.
Markus Armbruster [Thu, 22 Dec 2005 08:44:27 +0000 (08:44 +0000)]
Should have been removed in yesterday's build process commit.

18 years agoProvide and document means to set up a fresh source tree from CVS.
Markus Armbruster [Wed, 21 Dec 2005 09:19:33 +0000 (09:19 +0000)]
Provide and document means to set up a fresh source tree from CVS.

18 years ago(nat_cap): Remove redundant max_btus checks.
Ron Koenderink [Tue, 20 Dec 2005 22:50:06 +0000 (22:50 +0000)]
(nat_cap): Remove redundant max_btus checks.
Remove deities and opt_BLITZ calculations
as dispatch() will not let you run out of BTU's.

18 years agoReplace the build process. The new one requires GNU Make, Autoconf
Markus Armbruster [Tue, 20 Dec 2005 20:25:35 +0000 (20:25 +0000)]
Replace the build process.  The new one requires GNU Make, Autoconf
and Autoconf macros that come with Automake.  It supports multiple
separate builds of the same source tree, and updates dependencies
automatically.  Targets info, html, install, install-html, uninstall
and dist are not yet implemented.

System configuration is now automatic.  Previously, you had to choose
one of several canned system configurations, defined in Make.sysdefs.
Currently, system configuration always uses UCONTEXT for LWP, and
chooses LWP only if its requirements are met.

Feature configuration changed: instead of editing build.conf (further
processed by doconfig), you pass arguments to configure.  Note that
build.conf settings that can be overridden in econfig have no
configure equivalent; just edit econfig instead.

Because generated headers complicate makefiles, fold gamesdef.h into
its users: path.c and ipglob.c become path.c.in and ipglob.c.in,
constants.c, vers.c, options.h simply hardcode defaults (most of them
are run-time configurable).

Call the client empire instead of emp_client.  This matches what the
old standalone build did.

18 years ago(nati, player_coms): Add ability for deities to request a nation report for any country.
Ron Koenderink [Tue, 20 Dec 2005 17:06:47 +0000 (17:06 +0000)]
(nati, player_coms): Add ability for deities to request a nation report for any country.
Closes #1083167.

18 years ago(natstate): Add STAT_SANCT case so the nation report properly
Ron Koenderink [Tue, 20 Dec 2005 01:49:55 +0000 (01:49 +0000)]
(natstate): Add STAT_SANCT case so the nation report properly
shows SANCTUARY instead of VISITOR for countries in sanctuary.

18 years ago(capi): Do not check capital location if the country
Ron Koenderink [Mon, 19 Dec 2005 01:52:13 +0000 (01:52 +0000)]
(capi): Do not check capital location if the country
is has NF_SACKED set.

18 years ago(caploss): Remove the moving of a sacked capital.
Ron Koenderink [Sun, 18 Dec 2005 19:54:44 +0000 (19:54 +0000)]
(caploss): Remove the moving of a sacked capital.
This corrects the incorrect display of the old capital in the nation output.

(caploss): Remove unnecessary include files.