]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(pln_equip): Do not abandon sector for paradrop, drop or fly.
Ron Koenderink [Tue, 22 Nov 2005 20:10:15 +0000 (20:10 +0000)]
(pln_equip): Do not abandon sector for paradrop, drop or fly.
Closes #982226

18 years ago(tend): Send a bulletin to the ally when tending items to an ally.
Ron Koenderink [Tue, 22 Nov 2005 19:28:48 +0000 (19:28 +0000)]
(tend): Send a bulletin to the ally when tending items to an ally.
Closes #929398.

18 years ago(kill_cmd): Add authority check for deities before allowing a kill.
Ron Koenderink [Mon, 21 Nov 2005 18:35:08 +0000 (18:35 +0000)]
(kill_cmd): Add authority check for deities before allowing a kill.
Closes #1215088.  Add banned host check before allowing a kill.

18 years ago(natbyname): Do not look up a non-active country.
Ron Koenderink [Mon, 21 Nov 2005 18:25:49 +0000 (18:25 +0000)]
(natbyname): Do not look up a non-active country.
Previously a blank country name or deleted country name would
return a pointer to non-active countries.
This creates a security problem where some one can successfully
login into the server without country or password.  Closes #1219569.

18 years ago(ship_chr_flags): Add internal flags (M_XLIGHT, M_CHOPPER, M_UNIT)
Ron Koenderink [Sun, 20 Nov 2005 22:15:25 +0000 (22:15 +0000)]
(ship_chr_flags):  Add internal flags (M_XLIGHT, M_CHOPPER, M_UNIT)
to ship_chr_flags[].

18 years ago(tend_land): Allow spy units to be tended to and from sub
Ron Koenderink [Sun, 20 Nov 2005 18:17:05 +0000 (18:17 +0000)]
(tend_land): Allow spy units to be tended to and from sub
with no land unit carrying capability.  Closes #1313537.

18 years ago(dchrstr, pchrstr, rptstr): New member d_uid, p_uid, r_uid.
Markus Armbruster [Sat, 19 Nov 2005 17:37:43 +0000 (17:37 +0000)]
(dchrstr, pchrstr, rptstr): New member d_uid, p_uid, r_uid.
(dchr, bigcity_dchr, pchr, rpt): Initialize it.
(dchr_ca, pchr_ca, rpt_ca): New selector uid for it.

18 years ago(ef_write): Don't memcpy() onto itself; behavior's undefined.
Markus Armbruster [Sat, 19 Nov 2005 15:41:37 +0000 (15:41 +0000)]
(ef_write): Don't memcpy() onto itself; behavior's undefined.

18 years ago(multifire): When an argument is bad, do not loop prompting, just
Markus Armbruster [Sat, 19 Nov 2005 15:38:53 +0000 (15:38 +0000)]
(multifire): When an argument is bad, do not loop prompting, just
fail.  That's what the vast majority of commands do.

18 years ago(player_coms): Document second argument of launch.
Markus Armbruster [Sat, 19 Nov 2005 15:31:16 +0000 (15:31 +0000)]
(player_coms): Document second argument of launch.

18 years ago(laun, launch_as, launch_missile, launch_sat): When an argument is
Markus Armbruster [Sat, 19 Nov 2005 15:29:12 +0000 (15:29 +0000)]
(laun, launch_as, launch_missile, launch_sat): When an argument is
bad, do not loop prompting, just fail.  That's what the vast majority
of commands do.

(launch_as, launch_missile, launch_sat): Don't zap the target
argument.  If the target is given as argument, launch all missiles at
that target.  Previously, missiles after the first prompted for
another target.

18 years ago(buil): When an argument is bad, do not offer to list types, just
Markus Armbruster [Sat, 19 Nov 2005 15:15:49 +0000 (15:15 +0000)]
(buil): When an argument is bad, do not offer to list types, just
print how to list them.

(buil): When an argument is bad, do not loop prompting, just
fail.  That's what the vast majority of commands do.

18 years ago(getcontact,putcontact): Generalize the interface back to an int.
Ron Koenderink [Sat, 19 Nov 2005 14:55:03 +0000 (14:55 +0000)]
(getcontact,putcontact): Generalize the interface back to an int.
Add range checks to prevent unexpected results.

18 years ago(buil): Remove N_NEUT check. It should have been
Ron Koenderink [Sat, 19 Nov 2005 12:17:30 +0000 (12:17 +0000)]
(buil): Remove N_NEUT check.  It should have been
removed when the opt_NEUTRON was removed.

18 years ago(plurize): Fix the max. string length calculation for the 'y' case.
Ron Koenderink [Sat, 19 Nov 2005 12:11:09 +0000 (12:11 +0000)]
(plurize): Fix the max. string length calculation for the 'y' case.
It was off by one because 'y' is removed from the string.

18 years ago(nat_ca): Add nat_contact to nat_ca[].
Ron Koenderink [Sat, 19 Nov 2005 12:07:52 +0000 (12:07 +0000)]
(nat_ca): Add nat_contact to nat_ca[].

18 years ago(cons_choose): When an argument is bad, do not loop prompting, just
Markus Armbruster [Sat, 19 Nov 2005 11:27:03 +0000 (11:27 +0000)]
(cons_choose): When an argument is bad, do not loop prompting, just
fail.  That's what the vast majority of commands do.

18 years ago(ef_ptr, ef_read): Undo rev. 1.52 for these two, because there are
Markus Armbruster [Sat, 19 Nov 2005 11:20:13 +0000 (11:20 +0000)]
(ef_ptr, ef_read): Undo rev. 1.52 for these two, because there are
callers that rely on these functions to fail for bad ID.

18 years ago(add): When an argument is bad, do not loop prompting, just fail.
Markus Armbruster [Sat, 19 Nov 2005 10:54:05 +0000 (10:54 +0000)]
(add): When an argument is bad, do not loop prompting, just fail.
That's what the vast majority of commands do.

(add): Do not silently truncate country number argument.

(add): Diagnostics were confusing because they lacked context.

18 years agoThe previous revision accidentally deleted commented out code.
Markus Armbruster [Sat, 19 Nov 2005 09:53:22 +0000 (09:53 +0000)]
The previous revision accidentally deleted commented out code.
Restore.

18 years ago(getcontact, putcontact, nat_contact): Change nat_contact
Ron Koenderink [Fri, 18 Nov 2005 23:40:30 +0000 (23:40 +0000)]
(getcontact, putcontact, nat_contact): Change nat_contact
to unsigned char to reduce the space required for natstr.

18 years ago(prod_nat): Remove non-functional aging code for nat_contact.
Ron Koenderink [Fri, 18 Nov 2005 23:23:04 +0000 (23:23 +0000)]
(prod_nat): Remove non-functional aging code for nat_contact.
Remove nat_contact debugging from server log.

(update_main, prod_nat): Move aging code for nat_contact
from update_main to prod_nat.

18 years ago(agecontact): Remove the opt_LOSE_CONTACT, the calling
Ron Koenderink [Fri, 18 Nov 2005 23:02:51 +0000 (23:02 +0000)]
(agecontact): Remove the opt_LOSE_CONTACT, the calling
procedure update_main() already has opt_LOSE_CONTACT check.

18 years ago(getcontact, putcontact): Remove the bit shifting that was in the
Ron Koenderink [Fri, 18 Nov 2005 22:58:54 +0000 (22:58 +0000)]
(getcontact, putcontact): Remove the bit shifting that was in the
function to save space.  opt_LOSE_CONTACT changes negated
any space saving.

18 years ago(cens, desi, dump, do_desi, doland, file_sct_init, grow_continents)
Ron Koenderink [Thu, 17 Nov 2005 03:21:32 +0000 (03:21 +0000)]
(cens, desi, dump, do_desi, doland, file_sct_init, grow_continents)
(grow_islands, set_coastal, update_coastal_flag, coast_sea_to_land)
(coast_land_to_sea): Determine sct_coastal flag when the sector type
is set.  Old method only updated the sct_coastal flag when doing
cens() or a dump().  Other uses of sct_coastal could get stale values,
including selector coastal.  Rework set_coastal() into NEW functions
update_coastal_flag(), coast_sea_to_land(), coast_land_to_sea() and
set_coastal().  Fix a bug where the deity designation would not
properly set the coastal flag.  Fix a bug where the one sector lake
would not properly compute coastal flag.  Fix a bug that makes
fairland treat the last sector it adds to an island as non-coastal.

18 years ago(file_sct_init, main, fl_sct_init, write_sects): Assign sct_timestamp with the
Ron Koenderink [Thu, 17 Nov 2005 02:20:28 +0000 (02:20 +0000)]
(file_sct_init, main, fl_sct_init, write_sects): Assign sct_timestamp with the
time the sector was created in files and fairland programs.

18 years ago(add): Convert bridge spans or bridge towers into sea sectors instead the
Ron Koenderink [Wed, 16 Nov 2005 13:11:54 +0000 (13:11 +0000)]
(add): Convert bridge spans or bridge towers into sea sectors instead the
wilderness sectors when wiping sectors.

18 years ago(cens, cens_hdr): Print the actual old_owner instead of just a star
Ron Koenderink [Tue, 15 Nov 2005 23:44:38 +0000 (23:44 +0000)]
(cens, cens_hdr): Print the actual old_owner instead of just a star
when different.  This is change the format for the census output.

18 years ago(plurize): Change variable name max_len to size to improve readability.
Ron Koenderink [Mon, 14 Nov 2005 19:01:36 +0000 (19:01 +0000)]
(plurize): Change variable name max_len to size to improve readability.

18 years ago(plurize): Fix initial length check to check for zero length of buf
Ron Koenderink [Mon, 14 Nov 2005 18:11:46 +0000 (18:11 +0000)]
(plurize): Fix initial length check to check for zero length of buf
not non-zero lengths of buf.

(plurize): Change variable name size to len to improve readability.

18 years agoUpdate patch for src/lib/commands/mfir.c:1.26,src/server/main.c :1.79,include/prototy...
Marc Olzheim [Mon, 14 Nov 2005 16:35:33 +0000 (16:35 +0000)]
Update patch for src/lib/commands/mfir.c:1.26,src/server/main.c :1.79,include/prototypes.h:1.98

18 years ago(fuel, load, prod, max_population, shp_nav_one_sector,
Ron Koenderink [Mon, 14 Nov 2005 13:52:12 +0000 (13:52 +0000)]
(fuel, load, prod, max_population, shp_nav_one_sector,
nav_loadship, upd_buildeff): Identify BIG_CITY
(IS_BIG_CITY) by using packing type of UPKG instead of
opt_BIG_CITY and sector type of SCT_CAPITAL.

18 years ago(plurize): Fix the strncat() len parameter to prevent an overflow of buf.
Ron Koenderink [Sun, 13 Nov 2005 23:18:37 +0000 (23:18 +0000)]
(plurize): Fix the strncat() len parameter to prevent an overflow of buf.

(numstr, esplur, splur, iesplur, plurize): Move the prototype defintions from
misc.h to prototypes.h.  Remove unneccessary headers in plur.c.

18 years ago(budg): Create the capital/city name from the d_name field instead of
Ron Koenderink [Sun, 13 Nov 2005 21:23:44 +0000 (21:23 +0000)]
(budg): Create the capital/city name from the d_name field instead of
hard coding the strings.

(plurize): New.

18 years ago(opt_NO_LCMS, opt_NO_HCMS, opt_NO_OIL, Options,
Ron Koenderink [Sun, 13 Nov 2005 16:39:27 +0000 (16:39 +0000)]
(opt_NO_LCMS, opt_NO_HCMS, opt_NO_OIL, Options,
buil, show_bridge, show_tower, nullify_objects):
Remove NO_LCMS, NO_HCMS, and NO_OIL options, not used.
Functionality can be emulated by modifiying the characteristics files.

18 years ago(opt_NEUTRON, buil, denotate, show_nuke_capab, show_nuke_build,
Ron Koenderink [Sun, 13 Nov 2005 12:30:37 +0000 (12:30 +0000)]
(opt_NEUTRON, buil, denotate, show_nuke_capab, show_nuke_build,
Options): Remove opt_NEUTRON option.  The option can be emulated
by manipulating the flags in a nuke characteristics file.

18 years ago(dchr_ca, packing, empfile): Add packing symbol table.
Ron Koenderink [Sun, 13 Nov 2005 12:27:02 +0000 (12:27 +0000)]
(dchr_ca, packing, empfile): Add packing symbol table.

(sect_ca, ship_ca, land_ca, plague_stages, empfile):
Add plague stages symbol table.

(treaty_ca, loan_ca, agreement_statuses, empfile):
Add agreement status symbol table.
Combine treatystatuses (TS_FREE, TS_SIGNED and TS_PENDING)
and loan statuses (LS_FREE, LS_SIGNED and LS_PENDING)
into a single agreement status.

(pchr_ca, level, empfile): Add packing symbol table.

18 years ago(output): Remove C_FLUSH from output() as C_FLUSH is dealt with
Ron Koenderink [Sun, 13 Nov 2005 12:23:17 +0000 (12:23 +0000)]
(output): Remove C_FLUSH from output() as C_FLUSH is dealt with
by servercmd() and output() is not called from servercmd() with a
code of C_FLUSH.

18 years ago(xunsymbol): Fix xunsymbol() to parse multiple symbols for a
Ron Koenderink [Sun, 13 Nov 2005 01:45:39 +0000 (01:45 +0000)]
(xunsymbol): Fix xunsymbol() to parse multiple symbols for a
symbol_set (NSC_BITS).

18 years ago(xundump): Add prototypes.h to get a prototype for
Ron Koenderink [Sun, 13 Nov 2005 00:34:24 +0000 (00:34 +0000)]
(xundump): Add prototypes.h to get a prototype for
xundump().

18 years ago(servercmd): Remove newline for C_INFORM, C_FLUSH,
Ron Koenderink [Sat, 12 Nov 2005 20:16:07 +0000 (20:16 +0000)]
(servercmd): Remove newline for C_INFORM, C_FLUSH,
C_REDIR, C_PIPE and C_EXECUTE.
Fixes the problem created when the newline was left in io_gets().

18 years ago(buil, vers, opt_NONUKES, show_nuke_build, show_nuke_capab):
Ron Koenderink [Sat, 12 Nov 2005 20:09:11 +0000 (20:09 +0000)]
(buil, vers, opt_NONUKES, show_nuke_build, show_nuke_capab):
Remove opt_NONUKES options.  A nuke characteristics file can
be created with no entries to create the emulate the removed option.

18 years ago(dchr_ca): prd indexes product table.
Markus Armbruster [Sat, 12 Nov 2005 17:32:32 +0000 (17:32 +0000)]
(dchr_ca): prd indexes product table.

18 years ago(EF_MISSION_FLAGS, EF_MISSIONS, mission_flags, missions): Rename, as
Markus Armbruster [Sat, 12 Nov 2005 17:29:11 +0000 (17:29 +0000)]
(EF_MISSION_FLAGS, EF_MISSIONS, mission_flags, missions): Rename, as
these are not flags.

18 years ago(init_server, ef_load, xundump): Add ability to customize game
Ron Koenderink [Sat, 12 Nov 2005 16:53:52 +0000 (16:53 +0000)]
(init_server, ef_load, xundump): Add ability to customize game
configurations.  The custom game configurations are loaded via
text files in the data directory.  Closes #752881.

18 years ago(io_gets, output): Remove the removal of \n in io_gets() and the
Ron Koenderink [Sat, 12 Nov 2005 16:40:38 +0000 (16:40 +0000)]
(io_gets, output): Remove the removal of \n in io_gets() and the
readdition of it in output().

18 years ago(servercmd, io_gets, output): Fix client to read lines longer than
Ron Koenderink [Sat, 12 Nov 2005 14:20:46 +0000 (14:20 +0000)]
(servercmd, io_gets, output): Fix client to read lines longer than
1024 bytes from the server.  Closes #1223255.

18 years ago(xdump): Add EF_MAX check for table selection by number.
Ron Koenderink [Sat, 12 Nov 2005 13:38:01 +0000 (13:38 +0000)]
(xdump): Add EF_MAX check for table selection by number.
Fixes a crash when selecting a table over EF_MAX.

18 years ago(plane_flags, plane_ca): Add plane flags table.
Ron Koenderink [Wed, 9 Nov 2005 22:56:43 +0000 (22:56 +0000)]
(plane_flags, plane_ca): Add plane flags table.

(retreat_flags, ship_ca, land_ca, plane_ca): Add retreat flags table.

(nation_flags, nation_relations, nat_ca): Add nation flags and
nation relations tables.

(empfile_ca): Remove flags and file name fields.
They are internal and not needed by the client.

18 years ago(start_server, empth_start): Passed uninitialized sa_mask to
Markus Armbruster [Tue, 8 Nov 2005 21:42:38 +0000 (21:42 +0000)]
(start_server, empth_start): Passed uninitialized sa_mask to
sigaction().  This used to broken only when SA_SIGINFO wasn't defined,
until main.c rev. 1.46 and pthread.c rev. 1.10 broke it
unconditionally.

18 years agoFix bad line break.
Markus Armbruster [Mon, 7 Nov 2005 07:55:12 +0000 (07:55 +0000)]
Fix bad line break.

18 years ago(ef_init_chr): Sentinel names are now null, simplify sentinel check.
Markus Armbruster [Mon, 7 Nov 2005 07:54:16 +0000 (07:54 +0000)]
(ef_init_chr): Sentinel names are now null, simplify sentinel check.

18 years ago(init_server): Remove ef_load() call.
Ron Koenderink [Mon, 7 Nov 2005 00:07:25 +0000 (00:07 +0000)]
(init_server): Remove ef_load() call.
New function not ready yet, incorrectly
checked-in.

18 years ago(itm_maxno): Remove itm_maxno, it is not used.
Ron Koenderink [Sun, 6 Nov 2005 23:44:35 +0000 (23:44 +0000)]
(itm_maxno): Remove itm_maxno, it is not used.

18 years ago(nullify_objects): Fix sentinel row checks for plchr, lchr and mchr loops.
Ron Koenderink [Sun, 6 Nov 2005 23:42:42 +0000 (23:42 +0000)]
(nullify_objects): Fix sentinel row checks for plchr, lchr and mchr loops.

18 years ago(shp_maxno): Variable's value is well-known constant N_MAXSHIPS + 1.
Markus Armbruster [Sun, 6 Nov 2005 21:20:49 +0000 (21:20 +0000)]
(shp_maxno): Variable's value is well-known constant N_MAXSHIPS + 1.
Useless, remove.  Users changed to check mchr's sentinel, because
that's clearer than comparing the index to N_MAXSHIPS or sizeof(mchr)
/ sizeof(*mchr).

(mchr): Change sentinel's m_name to NULL.

18 years ago(pln_maxno): Variable's value is well-known constant N_MAXPLANE + 1.
Markus Armbruster [Sun, 6 Nov 2005 21:12:24 +0000 (21:12 +0000)]
(pln_maxno): Variable's value is well-known constant N_MAXPLANE + 1.
Useless, remove.  Users changed to check plchr's sentinel, because
that's clearer than comparing the index to N_MAXPLANE or sizeof(plchr)
/ sizeof(*plchr).

(plchr): Change sentinel's pl_name to NULL.

18 years ago(pstat): Remove inappropriate plane sanity check; should be done
Markus Armbruster [Sun, 6 Nov 2005 21:06:35 +0000 (21:06 +0000)]
(pstat): Remove inappropriate plane sanity check; should be done
elsewhere.

18 years ago(lnd_maxno): Variable's value is well-known constant N_MAXLAND + 1.
Markus Armbruster [Sun, 6 Nov 2005 20:59:38 +0000 (20:59 +0000)]
(lnd_maxno): Variable's value is well-known constant N_MAXLAND + 1.
Useless, remove.  Users changed to check lchr's sentinel, because
that's clearer than comparing the index to N_MAXLAND or sizeof(lchr) /
sizeof(*lchr).

(lchr): Change sentinel's l_name to NULL.

18 years ago(carg, lcarg, fort, land, ldump, lsta, orde, payo, retr, lretr)
Markus Armbruster [Sun, 6 Nov 2005 20:54:59 +0000 (20:54 +0000)]
(carg, lcarg, fort, land, ldump, lsta, orde, payo, retr, lretr)
(cmd_sail_ship, cmd_unsail_ship, show_sail, sdump, shi, sstat, work):
Remove inappropriate ship/land sanity checks; should be done
elsewhere.

18 years ago(show_nuke_build, show_nuke_capab): Simplify.
Markus Armbruster [Sun, 6 Nov 2005 20:37:57 +0000 (20:37 +0000)]
(show_nuke_build, show_nuke_capab): Simplify.

18 years ago(nuk_maxno): Variable's value is well-known constant N_MAXNUKE + 1.
Markus Armbruster [Sun, 6 Nov 2005 20:37:07 +0000 (20:37 +0000)]
(nuk_maxno): Variable's value is well-known constant N_MAXNUKE + 1.
Useless, remove.  Users changed to check nchr's sentinel, because
that's clearer than comparing the index to N_MAXNUKE or sizeof(nchr) /
sizeof(*nchr).

(nchr): Change sentinel's n_name to NULL.

18 years ago(buil): Use typematch() to search for ship, plane, land unit and nuke
Markus Armbruster [Sun, 6 Nov 2005 20:14:28 +0000 (20:14 +0000)]
(buil): Use typematch() to search for ship, plane, land unit and nuke
type.  The old code didn't work correctly when "sbb  super battleship"
came before "sb   submarine" in mchr[].

18 years ago(arm, tran_nuke): Lookup of the nuke name was broken by nuke.h
Markus Armbruster [Sun, 6 Nov 2005 20:01:51 +0000 (20:01 +0000)]
(arm, tran_nuke): Lookup of the nuke name was broken by nuke.h
rev. 1.10.  Replace by typematch().

(arm): Simplify search for nuke at sector.

18 years ago(prd_maxno): Variable's value is well-known constant P_MDUST + 2.
Markus Armbruster [Sun, 6 Nov 2005 18:06:38 +0000 (18:06 +0000)]
(prd_maxno): Variable's value is well-known constant P_MDUST + 2.
Useless, remove.  Users changed to check pchr's sentinel, because
that's clearer than comparing the index to P_MDUST or sizeof(pchr) /
sizeof(*pchr).

(pchr): Change sentinel's p_name and p_sname to NULL.  Sentinel
checks changed.

18 years ago(empfile,mission_flags,ship_ca,land_ca,plane_ca): Add mission flags table.
Ron Koenderink [Sun, 6 Nov 2005 13:43:09 +0000 (13:43 +0000)]
(empfile,mission_flags,ship_ca,land_ca,plane_ca):  Add mission flags table.

18 years ago(nullify_objects): Fix option NO_OIL. The attempt to remove ships
Markus Armbruster [Sun, 6 Nov 2005 12:06:10 +0000 (12:06 +0000)]
(nullify_objects): Fix option NO_OIL.  The attempt to remove ships
with capability M_OIL from mchr[] actually replaced them with
sentinels.  Just clear the capability instead.

18 years ago(xdopt, xdver): Simplify the previous rev.
Markus Armbruster [Sun, 6 Nov 2005 11:05:48 +0000 (11:05 +0000)]
(xdopt, xdver): Simplify the previous rev.

(xdump): Support selecting a dump by table number in addition to name.

18 years ago(ef_ptr, ef_read): Oops on bad ID. Some callers rely on these
Markus Armbruster [Sun, 6 Nov 2005 11:01:37 +0000 (11:01 +0000)]
(ef_ptr, ef_read): Oops on bad ID.  Some callers rely on these
functions to fail at the end of the table.  To support that, the first
ID beyond the end is not considered bad.

(ef_ensure_space): Oops on bad ID.

18 years ago(NSC_BITS): Remove the trailing comma as it is last row.
Ron Koenderink [Sat, 5 Nov 2005 20:25:16 +0000 (20:25 +0000)]
(NSC_BITS): Remove the trailing comma as it is last row.

18 years ago(install_service): Use the compiled in default for location of econfig
Ron Koenderink [Sat, 5 Nov 2005 20:05:38 +0000 (20:05 +0000)]
(install_service):  Use the compiled in default for location of econfig
when the -e is not specified while creating a service.

18 years ago(xdhdr,xdhdr1,xditem,xdmeta,xdopt,xdver,xdfldnam):
Ron Koenderink [Sat, 5 Nov 2005 17:46:17 +0000 (17:46 +0000)]
(xdhdr,xdhdr1,xditem,xdmeta,xdopt,xdver,xdfldnam):
Remove the column header.
Not need as the xdump meta is functional.

18 years ago(xdopt,xdver,xdump): Add meta data for opt and ver.
Ron Koenderink [Sat, 5 Nov 2005 01:49:47 +0000 (01:49 +0000)]
(xdopt,xdver,xdump): Add meta data for opt and ver.

18 years ago(xdmeta): Fix the printing of the number of rows dumped.
Ron Koenderink [Fri, 4 Nov 2005 23:32:05 +0000 (23:32 +0000)]
(xdmeta): Fix the printing of the number of rows dumped.
Incorrectly included the skipped rows.

18 years ago(xdmeta): Don't dump meta data for stuff that is not dumped by
Markus Armbruster [Fri, 4 Nov 2005 19:56:47 +0000 (19:56 +0000)]
(xdmeta): Don't dump meta data for stuff that is not dumped by
xdflds().

18 years ago(NSC_BITS): New.
Markus Armbruster [Fri, 4 Nov 2005 19:11:30 +0000 (19:11 +0000)]
(NSC_BITS): New.
(meta_flags): Update for it.
(ship_ca, mchr_ca, plane_ca, plchr_ca, land_ca, lchr_ca, nchr_ca)
treaty_ca, nat_ca, empfile_ca, mdchr_ca): Use it.

(symbol_ca): Move value selector to beginning of array.

(meta_flags): Downcase names.

18 years ago(mission_short_name): Remove mission_short_name, not used.
Ron Koenderink [Fri, 4 Nov 2005 18:27:28 +0000 (18:27 +0000)]
(mission_short_name):   Remove mission_short_name, not used.

18 years ago(nullify_objects): Patch intrchr[] according to opt_NO_LCMS,
Markus Armbruster [Fri, 4 Nov 2005 18:09:08 +0000 (18:09 +0000)]
(nullify_objects): Patch intrchr[] according to opt_NO_LCMS,
opt_NO_HCMS.  This fixes output of `show se b', which used not to
reflect these options.
(improve): Simplify.

18 years ago(xdmeta): Fix rev. 1.36.
Markus Armbruster [Fri, 4 Nov 2005 12:44:33 +0000 (12:44 +0000)]
(xdmeta): Fix rev. 1.36.

18 years ago(UNMAPPED_INIT, UNMAPPED_CACHE, ARRAY_INIT, ARRAY_TABLE, PTR_INIT)
Markus Armbruster [Thu, 3 Nov 2005 18:25:26 +0000 (18:25 +0000)]
(UNMAPPED_INIT, UNMAPPED_CACHE, ARRAY_INIT, ARRAY_TABLE, PTR_INIT)
(PTR_CACHE): Rename.

(ARRAY_CACHE): New.
(empfile): Use it to set csize of elements EF_SHIP_CHR, EF_PLANE_CHR,
EF_LAND_CHR, EF_NUKE_CHR.
(ef_init_chr): Now that empfile[]'s initializer sets csize, remove the
temporary csize initialization here.  The value wasn't correct, but
better than nothing.

18 years ago(perform_mission): Do not pass the sub-owner to nreport(). News
Markus Armbruster [Thu, 3 Nov 2005 17:40:16 +0000 (17:40 +0000)]
(perform_mission): Do not pass the sub-owner to nreport().  News
doesn't show it, but selectors do.  Reported by Doug Wescott.

(nreport, ncache): Catch errors like the above.  Catch bad event
argument while we're at it.

18 years ago(xdopt, xdver): Fix missing footer.
Markus Armbruster [Thu, 3 Nov 2005 09:24:52 +0000 (09:24 +0000)]
(xdopt, xdver): Fix missing footer.

18 years ago(xdmeta): Add NULL ca check.
Ron Koenderink [Thu, 3 Nov 2005 00:03:55 +0000 (00:03 +0000)]
(xdmeta): Add NULL ca check.
Fixes a crash for xdump meta pow.

18 years ago(ichr_ca, pchr_ca, sect_ca, dchr_ca, NSC_GENITEM, ship_ca, mchr_ca)
Markus Armbruster [Tue, 1 Nov 2005 15:19:42 +0000 (15:19 +0000)]
(ichr_ca, pchr_ca, sect_ca, dchr_ca, NSC_GENITEM, ship_ca, mchr_ca)
plane_ca, plchr_ca, land_ca, lchr_ca, nuke_ca, nchr_ca, treaty_ca)
loan_ca, news_ca, lost_ca, commodity_ca, trade_ca, nat_ca)
(empfile_ca): Move row index selector to beginning of array and set
its table.  Set table for NSC_SITYPE(i_type), NSC_NATID, NSC_TYPEID
selectors.
(news_ca): Set selector action's table.
(commodity_ca, trade_ca): Set selector maxbidder's table.

18 years ago(trtstr): New members ef_type and trt_uid.
Markus Armbruster [Tue, 1 Nov 2005 12:53:43 +0000 (12:53 +0000)]
(trtstr): New members ef_type and trt_uid.
(do_treaty): Initialize them.
(treaty_ca): New selector uid.

18 years ago(ef_ptr): Null cache can't happen.
Markus Armbruster [Mon, 31 Oct 2005 21:26:16 +0000 (21:26 +0000)]
(ef_ptr): Null cache can't happen.

18 years ago(ef_open): EFF_STATIC and cache not null can't happen.
Markus Armbruster [Sun, 30 Oct 2005 18:48:55 +0000 (18:48 +0000)]
(ef_open): EFF_STATIC and cache not null can't happen.

(ef_open): Leave check of fd to do_write().

18 years ago(empfile_ca): Rename selector file_name to file, to match the member
Markus Armbruster [Sun, 30 Oct 2005 16:52:10 +0000 (16:52 +0000)]
(empfile_ca): Rename selector file_name to file, to match the member
name.

18 years ago(ichr): Define without array size, like the other characteristics
Markus Armbruster [Sun, 30 Oct 2005 16:51:21 +0000 (16:51 +0000)]
(ichr): Define without array size, like the other characteristics
tables.

18 years agoDoc fix.
Markus Armbruster [Sun, 30 Oct 2005 16:50:32 +0000 (16:50 +0000)]
Doc fix.

18 years ago(diroff, dirch, routech): Declare with array size. Define without.
Markus Armbruster [Sun, 30 Oct 2005 16:46:46 +0000 (16:46 +0000)]
(diroff, dirch, routech): Declare with array size.  Define without.
This requires moving routech[] declaration from map.h to path.h.  Get
rid of s_char.

18 years ago(ep): Global variable pointing to sector cache. Gross. Remove.
Markus Armbruster [Sun, 30 Oct 2005 16:22:29 +0000 (16:22 +0000)]
(ep): Global variable pointing to sector cache.  Gross.  Remove.

(bp_neighbors, bp_lbcost, pathcost): Replace pointer arithmetic by
array subscript.

18 years agoC_EXECUTE security.
Markus Armbruster [Sun, 30 Oct 2005 15:03:02 +0000 (15:03 +0000)]
C_EXECUTE security.

18 years ago(coun): Last access used to report last login time.
Markus Armbruster [Sun, 30 Oct 2005 14:59:39 +0000 (14:59 +0000)]
(coun): Last access used to report last login time.
Counter-intuitive.  Report last connection time range instead.
Unfortunately, this requires a change in output format.

(coun): Report on all countries even to mortals.  This used to be
done, and was most probably changed because it gave away too much
information.  Carefully limit the information given to mortals, as
follows.  Limit last access information to whether deities or allies
are logged on right now, no longer report connection time for deities
that are not logged on.  Remove column time for mortals, rename it to
BTU for deities.  Report status, but with less detail if HIDDEN is
enabled.

18 years ago(buy, check_market, trad, check_trade): Remove the following virtually
Markus Armbruster [Sun, 30 Oct 2005 14:33:44 +0000 (14:33 +0000)]
(buy, check_market, trad, check_trade): Remove the following virtually
undocumented feature: When a buyer didn't have enough money at the
time of the trade, the seller *automatically* granted a high-interest,
medium term loan for up to 90% of the price.  This is just a silly
trap for unwary sellers and buyers alike.
(N_FIN_TROUBLE, N_CREDIT_JUNK): Unused, remove.
(rpt): Update accordingly.

18 years ago(empfile): Rename member ef_uid to uid for consistency with other
Markus Armbruster [Sun, 30 Oct 2005 12:50:13 +0000 (12:50 +0000)]
(empfile): Rename member ef_uid to uid for consistency with other
members.

(empfile): Reorder members for clearer documentation.

(EFF_IMMUTABLE): New.
(EFF_OPEN): Remove, use ~EFF_IMMUTABLE.

(empfile): Don't initialize member size to a useless value for EF_MAP
and EF_BMAP.  ef_init() writes the real value.

18 years ago(ef_init_chr): Add a NULL check to sentinel check.
Ron Koenderink [Sat, 29 Oct 2005 20:38:59 +0000 (20:38 +0000)]
(ef_init_chr): Add a NULL check to sentinel check.

18 years ago(ef_init): Fix check for sentinel.
Markus Armbruster [Sat, 29 Oct 2005 16:50:07 +0000 (16:50 +0000)]
(ef_init): Fix check for sentinel.

18 years ago(xdump): Use xditem() for all empfile tables.
Markus Armbruster [Sat, 29 Oct 2005 16:44:53 +0000 (16:44 +0000)]
(xdump): Use xditem() for all empfile tables.
(xdchr, xdmeta): Specialize for meta-tables, rename.

18 years ago(meta_flags, meta_type): Change sentinel name to NULL to match the
Markus Armbruster [Sat, 29 Oct 2005 16:40:17 +0000 (16:40 +0000)]
(meta_flags, meta_type): Change sentinel name to NULL to match the
other symbol tables.