]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(mchr, plchr, lchr, nchr): Move initializer to new builtin config
Markus Armbruster [Sun, 19 Feb 2006 09:15:46 +0000 (09:15 +0000)]
(mchr, plchr, lchr, nchr): Move initializer to new builtin config
files ship.config, plane.config, land.config, nuke.config.
(empfile): Declare the new config files.
(install, installdirs): Install them.
(builtins): New make variable.

18 years ago(lndchr): Rename member l_mxland to l_nland for consistency with
Markus Armbruster [Sun, 19 Feb 2006 07:32:03 +0000 (07:32 +0000)]
(lndchr): Rename member l_mxland to l_nland for consistency with
similar unit characteristics.

18 years ago(builtindir): New econfig key, variable and make variable.
Markus Armbruster [Sun, 19 Feb 2006 07:04:30 +0000 (07:04 +0000)]
(builtindir): New econfig key, variable and make variable.
(subst.in): Substitute it.  Fix prerequisites.
(read_builtin_tables): New.
(main): Call it.  This doesn't do anything, because no builtin tables
have been defined.

18 years ago(emp_config): Non-portable strndup() crept into rev. 1.33. Replace by
Markus Armbruster [Sat, 18 Feb 2006 16:48:23 +0000 (16:48 +0000)]
(emp_config): Non-portable strndup() crept into rev. 1.33.  Replace by
portable code.

18 years ago(print_config): When km_comment starts with '#', don't prepend "\n#".
Markus Armbruster [Sat, 18 Feb 2006 16:12:50 +0000 (16:12 +0000)]
(print_config): When km_comment starts with '#', don't prepend "\n#".

18 years ago(empfile, SYMTAB): Reorder so that symbol tables are together. Sort
Markus Armbruster [Sat, 18 Feb 2006 15:02:18 +0000 (15:02 +0000)]
(empfile, SYMTAB): Reorder so that symbol tables are together.  Sort
them alphabetically.  Factor out commonalities into new SYMTAB().  No
functional changes.

18 years agoCollect all symbol tables in new symbol.c. No functional changes.
Markus Armbruster [Sat, 18 Feb 2006 14:55:29 +0000 (14:55 +0000)]
Collect all symbol tables in new symbol.c.  No functional changes.

18 years agoNew way to read configuration tables:
Markus Armbruster [Sat, 18 Feb 2006 13:57:52 +0000 (13:57 +0000)]
New way to read configuration tables:
(config_tables): New econfig key.
(read_config_tables): New, implements config_tables.
(main): Call it.  Need to call ef_init() and chdir(configdir) first.
(ef_init_srv): Don't call ef_init(), since main() did it already.

Remove old way to do the same:
(ef_load): Remove, along with calls.
(empfile): Set configuration tables' member file back to NULL.

18 years ago(configdir): New, to be used for loading configuration tables.
Markus Armbruster [Sat, 18 Feb 2006 12:43:17 +0000 (12:43 +0000)]
(configdir): New, to be used for loading configuration tables.
(emp_config): Set it to econfig's directory.

18 years ago(main): Don't use access() before mkdir() to check whether the
Markus Armbruster [Sat, 18 Feb 2006 09:29:49 +0000 (09:29 +0000)]
(main): Don't use access() before mkdir() to check whether the
directory to be created exists, just check errno afterwards.

[_WIN32] (F_OK, W_OK, R_OK): Unused, remove.

18 years ago(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
Markus Armbruster [Sat, 18 Feb 2006 09:16:50 +0000 (09:16 +0000)]
(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
output variable datadir and with configuration data.

18 years agoChange xdump nat to show only own country, and xdump cou to show to
Markus Armbruster [Fri, 17 Feb 2006 18:38:50 +0000 (18:38 +0000)]
Change xdump nat to show only own country, and xdump cou to show to
deities what xdump nat used to show:
(cou_ca): Remove initializer.
(ef_init_srv): Initialize cou_ca[] from nat_ca[].
(xdvisible): Change case EF_NATION to return true only for owner
even for deities.

18 years ago(lost_ca, trade_ca): Provide proper ca_table for selector type.
Markus Armbruster [Fri, 17 Feb 2006 18:04:07 +0000 (18:04 +0000)]
(lost_ca, trade_ca): Provide proper ca_table for selector type.

18 years ago(xdvisible): Fix case EF_NATION for deities not to return true for
Markus Armbruster [Thu, 16 Feb 2006 21:49:27 +0000 (21:49 +0000)]
(xdvisible): Fix case EF_NATION for deities not to return true for
STAT_UNUSED.

18 years ago(vers): Fix rev. 1.24 for money_ship, money_plane, money_land.
Markus Armbruster [Thu, 16 Feb 2006 19:54:47 +0000 (19:54 +0000)]
(vers): Fix rev. 1.24 for money_ship, money_plane, money_land.

(vers): Fix rev. 1.25 for fallout_spread.  Beautify message.

(vers): Align collateral damage heading with the columns in the body.

18 years ago(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
Ron Koenderink [Thu, 16 Feb 2006 02:14:08 +0000 (02:14 +0000)]
(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
(show_nuke_capab, vers, xdvisible, build.t, Options.t):
Remove opt_DRNUKE and replace with the following check
drnuke_const > MIN_DRNUKE_CONST.
Set MIN_DRNUKE_CONST to 0.001 to prevent issues with tiny values.
Change the default drnuke_const to 0.0 because in the stock game
opt_DRNUKE was disabled.

18 years ago(buil): Fix rev. 1.32: information on how to list nukes was incorrect
Markus Armbruster [Wed, 15 Feb 2006 19:47:56 +0000 (19:47 +0000)]
(buil): Fix rev. 1.32: information on how to list nukes was incorrect
for opt_DRNUKE.

18 years ago(info.nr/all, info.html/all.html): Don't pass -F to ls, it has no
Markus Armbruster [Wed, 15 Feb 2006 07:35:32 +0000 (07:35 +0000)]
(info.nr/all, info.html/all.html): Don't pass -F to ls, it has no
effect here.  Was mindlessly copied from old info/Makefile.

18 years ago(verify_row): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
Markus Armbruster [Tue, 14 Feb 2006 19:54:08 +0000 (19:54 +0000)]
(verify_row): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
which broke NSC_STRINGY.

18 years ago(defellipsis, chkflds, xundump2, need_uid): Use new need_uid to
Markus Armbruster [Tue, 14 Feb 2006 18:04:44 +0000 (18:04 +0000)]
(defellipsis, chkflds, xundump2, need_uid): Use new need_uid to
require index field in all parts of a split table.

18 years agoSupport vertically split configuration tables (human-readable only):
Markus Armbruster [Tue, 14 Feb 2006 07:30:06 +0000 (07:30 +0000)]
Support vertically split configuration tables (human-readable only):
(ellipsis): New.
(xuheader1): Initialize it.  Compute nflds.  Allow repetition of index
field in continued tables.
(xundump): Don't set nflds.
(xufldname, defellipsis): Accept ... and call new defellipsis().
(xufldname, chkflds): Update and elaborate check for missing fields,
move it to new chkflds().  Require repetition of index field in
continued tables.
(xundump2): New, factored out of xundump().  Parse continued tables.

18 years agoXdumps don't contain records not in use, cope with that:
Markus Armbruster [Mon, 13 Feb 2006 21:22:05 +0000 (21:22 +0000)]
Xdumps don't contain records not in use, cope with that:
(xundump1, setnum, setstr, getobj, cur_id): Delay table lookup until
first field is about to be assigned.
(xundump1): Record largest ID, because it's no longer given by final
value of row.

(xuheader1, xundump1, xundump): Move initialization of cur_type to
xundump().

18 years ago(xundump1): Don't suppress table growth just because it has NSC_CONST
Markus Armbruster [Mon, 13 Feb 2006 21:16:41 +0000 (21:16 +0000)]
(xundump1): Don't suppress table growth just because it has NSC_CONST
selectors.  That's wrong for EF_SECTOR_CHR and EF_PRODUCT.  Don't
allow table shrinking just because it has no NSC_CONST selectors.
That's wrong for EF_NEWS_CHR.  Allow it for game state and unit
characteristics.
(has_const): Unused, remove.

18 years ago(sect_ca): Make selectors xloc, yloc NSC_CONST.
Markus Armbruster [Mon, 13 Feb 2006 20:48:00 +0000 (20:48 +0000)]
(sect_ca): Make selectors xloc, yloc NSC_CONST.

(realm_ca): Make selectors cnum, realm NSC_CONST.

18 years ago(setnum): Fix computation of old for cases NSC_XCOORD, NSC_YCOORD.
Markus Armbruster [Mon, 13 Feb 2006 20:44:18 +0000 (20:44 +0000)]
(setnum): Fix computation of old for cases NSC_XCOORD, NSC_YCOORD.

18 years ago(xuheader, xundump): Return -2 for empty input, so it can be
Markus Armbruster [Mon, 13 Feb 2006 19:07:31 +0000 (19:07 +0000)]
(xuheader, xundump): Return -2 for empty input, so it can be
distinguished from bad input.

18 years ago(setstr): Fix for NSC_STRINGY without terminating zero.
Markus Armbruster [Mon, 13 Feb 2006 07:06:47 +0000 (07:06 +0000)]
(setstr): Fix for NSC_STRINGY without terminating zero.

18 years agoDoc fix.
Markus Armbruster [Sun, 12 Feb 2006 23:01:47 +0000 (23:01 +0000)]
Doc fix.

18 years agoPolish messages.
Markus Armbruster [Sun, 12 Feb 2006 23:00:06 +0000 (23:00 +0000)]
Polish messages.

18 years ago(sect_ca[]): Remove NSC_EXTRA for sct_coastal
Ron Koenderink [Sun, 12 Feb 2006 20:40:18 +0000 (20:40 +0000)]
(sect_ca[]): Remove NSC_EXTRA for sct_coastal
so the field is dumped.

18 years ago(perform_mission): Disqualify land units from performing
Ron Koenderink [Sun, 12 Feb 2006 20:37:27 +0000 (20:37 +0000)]
(perform_mission): Disqualify land units from performing
missions when they are on ship or a train.

18 years ago(xuheader1): New, factored out of xundump().
Markus Armbruster [Sun, 12 Feb 2006 15:52:10 +0000 (15:52 +0000)]
(xuheader1): New, factored out of xundump().

18 years agoChange dchrstr member d_mnem to char.
Markus Armbruster [Sun, 12 Feb 2006 13:56:12 +0000 (13:56 +0000)]
Change dchrstr member d_mnem to char.

18 years agoChange ichrstr member i_mnen to char.
Markus Armbruster [Sat, 11 Feb 2006 07:41:34 +0000 (07:41 +0000)]
Change ichrstr member i_mnen to char.

18 years ago(xdeval): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
Markus Armbruster [Sat, 11 Feb 2006 07:25:28 +0000 (07:25 +0000)]
(xdeval): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
which broke NSC_STRINGY.  Initialize from new parameter len.  Callers
changed.

18 years agoNew.
Markus Armbruster [Fri, 10 Feb 2006 19:30:19 +0000 (19:30 +0000)]
New.

18 years ago(cou_ca, symbol_ca, mdchr_ca): Make all selectors NSC_CONST.
Markus Armbruster [Fri, 10 Feb 2006 19:12:10 +0000 (19:12 +0000)]
(cou_ca, symbol_ca, mdchr_ca): Make all selectors NSC_CONST.

(empfile_ca): Make selector name NSC_CONST.

18 years ago(cou_ca): Fix ca_type for selector stat.
Markus Armbruster [Fri, 10 Feb 2006 19:00:38 +0000 (19:00 +0000)]
(cou_ca): Fix ca_type for selector stat.

18 years ago(options_cmd): Sent two prompts when listing options.
Markus Armbruster [Fri, 10 Feb 2006 18:28:55 +0000 (18:28 +0000)]
(options_cmd): Sent two prompts when listing options.

18 years agoDoc update.
Markus Armbruster [Thu, 9 Feb 2006 19:48:21 +0000 (19:48 +0000)]
Doc update.

18 years ago(xundump): Rev. 1.44 broke ef_load(). Fix.
Markus Armbruster [Thu, 9 Feb 2006 18:34:57 +0000 (18:34 +0000)]
(xundump): Rev. 1.44 broke ef_load().  Fix.

18 years ago(lchr_ca[]): Change the name for l_rnd from "rad" to "rmax".
Ron Koenderink [Thu, 9 Feb 2006 13:31:05 +0000 (13:31 +0000)]
(lchr_ca[]): Change the name for l_rnd from "rad" to "rmax".
This removes a conflict between rad items and reaction radius.
Now the name matches the equivalent name in land_ca[].

18 years ago(xundump, xundump1): Fix treatment of empty lines.
Markus Armbruster [Thu, 9 Feb 2006 07:10:18 +0000 (07:10 +0000)]
(xundump, xundump1): Fix treatment of empty lines.

18 years ago(mtsymset, xutrailer, xundump1): Remove unused variables.
Ron Koenderink [Thu, 9 Feb 2006 00:28:28 +0000 (00:28 +0000)]
(mtsymset, xutrailer, xundump1): Remove unused variables.

18 years agoAccept fields out of order in human-readable syntax (indexes must
Markus Armbruster [Wed, 8 Feb 2006 23:23:48 +0000 (23:23 +0000)]
Accept fields out of order in human-readable syntax (indexes must
still be in order), support abbreviated field names:
(nxt_sel, nxt_idx, nxtfld, ca4fld): Remove.
(nflds, fldca, fldidx, caflds, getfld): New.
(xundump): Initialize and finalize them.
(xundump1): New, factored out of xundump().
(deffld): Match names, record field order in fldca[], fldidx[] for
getfld().  Use caflds[] to detect duplicates.
(xufldname): Catch negative index.  Used to pass it to deffld(), which
now interprets it as no index.
(setnum, setstr, setsym, mtsymset, add2symset): Use getfld().

(xufld): Improve error message.

(setstr): Fix for NULL strings.

(xuheader): Catch null ef_cadef().

(xuheader): Don't oops when an unexpected table can't be undumped.

18 years agoImprove error messages.
Markus Armbruster [Wed, 8 Feb 2006 22:44:22 +0000 (22:44 +0000)]
Improve error messages.

18 years agoThe separation between parsing and semantic actions is awkward and
Markus Armbruster [Wed, 8 Feb 2006 22:32:53 +0000 (22:32 +0000)]
The separation between parsing and semantic actions is awkward and
leaks memory; rework it:
(deffld): New; semantic action for field headers.
(xufldname): Use it instead of storing a value for xucolumnheader().
(xucolumnheader): Remove, use xuflds() directly instead.
(setnum, setstr, setsym): New; semantic actions for field values.
(xufld): Use it instead of storing a value for xuloadrow().
(xuloadrow): Remove.  Was incomplete.
(xufldname, xufld, xuflds): Remove parameter values.  Callers
changed.
(cur_type, cur_obj, nxt_sel, nxt_idx, nxtfld, ca4fld, getsymtab): New
helpers.
(xundump): Initialize them.
(enum_value, value, freeflds, xunsymbol): Remove.

(mtsymset, add2symset): New.
(xufld): Use them to build a symbol set along the parse.

(xufldname, xufld, xuheader, xutrailer, xundump): Increment lineno
when and only when a linefeed is consumed, to make sure it is correct.
Move some semantic checks so that errors get reported for the correct
line.

(xundump): Use compare filenames as pointers, not strings, when
checking whether to reset lineno.

(xundump): Keep empfile[type] consistent during parse, to make
ef_ptr() usable.

(xundump): Don't call ep->init() on sentinels.
(xuinitrow): Unused, remove.

18 years ago(xundump): Precise value for need_sentinel.
Markus Armbruster [Wed, 8 Feb 2006 22:02:13 +0000 (22:02 +0000)]
(xundump): Precise value for need_sentinel.

18 years ago(xutrailer): Fix parsing of /config. Change human-readable syntax not
Markus Armbruster [Wed, 8 Feb 2006 21:53:04 +0000 (21:53 +0000)]
(xutrailer): Fix parsing of /config.  Change human-readable syntax not
to accept number of records.  Don't skip empty lines after trailer.

18 years ago(xuheader): Check for unexpected table before oopsing on !EFF_MEM.
Markus Armbruster [Wed, 8 Feb 2006 21:41:48 +0000 (21:41 +0000)]
(xuheader): Check for unexpected table before oopsing on !EFF_MEM.

18 years ago(xufldname, xufld): New, factored out of xuflds and specialized for
Markus Armbruster [Wed, 8 Feb 2006 20:56:39 +0000 (20:56 +0000)]
(xufldname, xufld): New, factored out of xuflds and specialized for
headers and for body lines, respectively.
(xflds): Call them through new parameter parse.  Callers changed.

18 years ago(xucolumnheader): Don't gripe when xuflds() fails, because that one
Markus Armbruster [Wed, 8 Feb 2006 20:49:47 +0000 (20:49 +0000)]
(xucolumnheader): Don't gripe when xuflds() fails, because that one
already griped.

18 years ago(MIN, MAX): Fix insufficiently parenthesized macro expansion.
Markus Armbruster [Mon, 6 Feb 2006 21:56:38 +0000 (21:56 +0000)]
(MIN, MAX): Fix insufficiently parenthesized macro expansion.

18 years ago(nation_status): Lacked sentinel.
Markus Armbruster [Mon, 6 Feb 2006 20:12:42 +0000 (20:12 +0000)]
(nation_status): Lacked sentinel.

18 years ago(verify_row): Check all values against symbol tables, not just
Markus Armbruster [Mon, 6 Feb 2006 07:57:04 +0000 (07:57 +0000)]
(verify_row): Check all values against symbol tables, not just
non-negative ones.

(verify_row): Fix off by one in non-symbol table index check.

18 years ago(verify_row): Check table references regardless of target table. Also
Markus Armbruster [Mon, 6 Feb 2006 07:53:42 +0000 (07:53 +0000)]
(verify_row): Check table references regardless of target table.  Also
fixes the previous revision.

18 years ago(level): Add value -1.
Markus Armbruster [Mon, 6 Feb 2006 07:41:55 +0000 (07:41 +0000)]
(level): Add value -1.

18 years ago(meta_type): Fix NSC_TYPE entry to match specification.
Markus Armbruster [Sun, 5 Feb 2006 20:20:46 +0000 (20:20 +0000)]
(meta_type): Fix NSC_TYPE entry to match specification.

18 years ago(verify_row): Check uid.
Markus Armbruster [Sun, 5 Feb 2006 19:59:08 +0000 (19:59 +0000)]
(verify_row): Check uid.

18 years ago(verify_row): NSC_BITS implies symbol_ca. Oops if violated.
Markus Armbruster [Sun, 5 Feb 2006 19:57:10 +0000 (19:57 +0000)]
(verify_row): NSC_BITS implies symbol_ca.  Oops if violated.

18 years ago(verify_row): Simplify control structure. No functional change.
Markus Armbruster [Sun, 5 Feb 2006 19:55:05 +0000 (19:55 +0000)]
(verify_row): Simplify control structure.  No functional change.

18 years agoDocument uid selector convention.
Markus Armbruster [Sun, 5 Feb 2006 19:30:20 +0000 (19:30 +0000)]
Document uid selector convention.

18 years ago(zdon): Display current number of missed updates and number of
Ron Koenderink [Sun, 5 Feb 2006 19:19:00 +0000 (19:19 +0000)]
(zdon): Display current number of missed updates and number of
missed updates before vetoing begins.

18 years ago(verify_row): Fix for flags that don't fit into int.
Markus Armbruster [Sun, 5 Feb 2006 19:16:37 +0000 (19:16 +0000)]
(verify_row): Fix for flags that don't fit into int.

18 years ago(verify_row): if/else with negated condition is confusing. Negate
Markus Armbruster [Sun, 5 Feb 2006 19:13:58 +0000 (19:13 +0000)]
(verify_row): if/else with negated condition is confusing.  Negate
condition, swap conditional statements.

18 years ago(verify_row): Plug memory leak.
Markus Armbruster [Sun, 5 Feb 2006 19:08:49 +0000 (19:08 +0000)]
(verify_row): Plug memory leak.

18 years ago(realm_ca): Remove selector uid. It's not useful for players, and not
Markus Armbruster [Sun, 5 Feb 2006 19:01:41 +0000 (19:01 +0000)]
(realm_ca): Remove selector uid.  It's not useful for players, and not
needed for xdump, because it doesn't occur as ca_table.

(lost_ca): Remove selector uid.  Reasons as for realm_ca.  The value
is incorrect in unused records, which is semantically tolerable, but
needlessly complicated to check in ef_verify.c.

(news_ca): Remove selector uid.  Reasons as for realm_ca, plus the
value is incorrect, because nws_uid is not used.

18 years agoFix bad line breaks.
Markus Armbruster [Sun, 5 Feb 2006 17:58:16 +0000 (17:58 +0000)]
Fix bad line breaks.

18 years agoDoc fix.
Markus Armbruster [Sun, 5 Feb 2006 17:43:00 +0000 (17:43 +0000)]
Doc fix.

18 years agoWhen sources.mk is needed to find directories, don't test whether it's
Markus Armbruster [Sun, 5 Feb 2006 17:41:17 +0000 (17:41 +0000)]
When sources.mk is needed to find directories, don't test whether it's
there, just use it.  If it's not there, things will fail down the
road.  Better to fail early.

18 years ago(vers): Add collateral damage matrix to version report.
Ron Koenderink [Sun, 5 Feb 2006 17:37:58 +0000 (17:37 +0000)]
(vers): Add collateral damage matrix to version report.
Add unit_damage and collateral_dam to the collateral damage matrix.
Move people_damage into matrix.

18 years ago(vers): Add the following the configuration values to the version report:
Ron Koenderink [Sun, 5 Feb 2006 15:52:26 +0000 (15:52 +0000)]
(vers): Add the following the configuration values to the version report:
torpedo_damage, flakscale, people_damage, assault_penalty,
decay_per_etu, fallout_spread, fuel_mult, max_btus and max_idle.

18 years ago(main) [_WIN32]: Upgrade to winsock version 2.
Ron Koenderink [Sun, 5 Feb 2006 15:47:13 +0000 (15:47 +0000)]
(main) [_WIN32]: Upgrade to winsock version 2.
Remove version 1.1 include files.

18 years ago(configkeys): Make pre_update_hook and start_cash KM_INTERNAL.
Ron Koenderink [Sat, 4 Feb 2006 21:04:25 +0000 (21:04 +0000)]
(configkeys): Make pre_update_hook and start_cash KM_INTERNAL.

18 years ago(powe_cost): Remove powe_cost and replace with a fixed cost of 10.
Ron Koenderink [Sat, 4 Feb 2006 19:36:51 +0000 (19:36 +0000)]
(powe_cost): Remove powe_cost and replace with a fixed cost of 10.

18 years ago(vers): Add the following econfig values to version report:
Ron Koenderink [Thu, 2 Feb 2006 13:20:14 +0000 (13:20 +0000)]
(vers):  Add the following econfig values to version report:
MARK_DELAY, TRADE_DELAY, mission_mob_cost ,
money_ship, money_plane, money_land,
fort_max_interdiction_range, ship_max_interdiction_range,
land_max_interdiction_range, combat_mob and
sect_mob_neg_factor.

18 years ago(lcarg, lcargo.t): Fix the header to match the info page.
Ron Koenderink [Wed, 1 Feb 2006 23:52:42 +0000 (23:52 +0000)]
(lcarg, lcargo.t): Fix the header to match the info page.
Update the info page for the change to add civ, mil and uw.

(carg, cargo.t): Add the civ, mil and uw to cargo display.
Make the same as lcargo.  Update the info page.

18 years ago(lcarg, ldump): Display civ, mil, and uw cargo for land units.
Ron Koenderink [Tue, 31 Jan 2006 17:32:33 +0000 (17:32 +0000)]
(lcarg, ldump): Display civ, mil, and uw cargo for land units.
Remove full name from lcarg() to make room.  Closes #889646.

18 years ago(show_news, news, empfile[], page_headings[], page_headings_symbols[]):
Ron Koenderink [Mon, 30 Jan 2006 22:26:48 +0000 (22:26 +0000)]
(show_news, news, empfile[], page_headings[], page_headings_symbols[]):
Change page_headings[] to struct symbol and removed
page_headings_symbols[].

18 years agoProperly parse and validate column headers:
Ron Koenderink [Mon, 30 Jan 2006 22:23:43 +0000 (22:23 +0000)]
Properly parse and validate column headers:
(enum_value, value, xuflds, freeflds): Parse additional syntax:
numeric and symbolic index.
(xucolumnheader): Use it to parse column header line.  Check names
and indexes match meta-data.  Symbolic indexes not yet implemented.
(xuloadrow): Reject the additional syntax.

18 years agoUpdate comment to indicate page_headings[] is done.
Ron Koenderink [Sun, 29 Jan 2006 19:29:10 +0000 (19:29 +0000)]
Update comment to indicate page_headings[] is done.

18 years ago(xuheader): Remove values[], not used.
Ron Koenderink [Sun, 29 Jan 2006 19:12:52 +0000 (19:12 +0000)]
(xuheader): Remove values[], not used.

18 years ago(EF_PAGE_HEADINGS, page_headings_symbols, M_NOTUSED): New.
Ron Koenderink [Sun, 29 Jan 2006 18:40:11 +0000 (18:40 +0000)]
(EF_PAGE_HEADINGS, page_headings_symbols, M_NOTUSED): New.
(empfile): Add it.
(rpt_ca): Use it.

18 years ago(show_news): New.
Ron Koenderink [Sun, 29 Jan 2006 17:44:29 +0000 (17:44 +0000)]
(show_news): New.
(show): Use it to implement show news.

18 years ago(news): Fix rev. 1.13: fail command before printing headlines.
Markus Armbruster [Sun, 29 Jan 2006 17:13:25 +0000 (17:13 +0000)]
(news): Fix rev. 1.13: fail command before printing headlines.

18 years ago(ac_dog): Do not use 'ap' as a pointer to get the owner
Ron Koenderink [Sun, 29 Jan 2006 13:56:35 +0000 (13:56 +0000)]
(ac_dog): Do not use 'ap' as a pointer to get the owner
for the call to ac_planedamage() use att_own instead.
'ap' may have been already freed in the previous call
to ac_planedamage().  This can create an invalid
news item and crash the server.

18 years ago(player_coms): Sort by element member c_form.
Markus Armbruster [Sun, 29 Jan 2006 13:51:47 +0000 (13:51 +0000)]
(player_coms): Sort by element member c_form.

18 years ago(xdver): Dump version string.
Markus Armbruster [Sat, 28 Jan 2006 17:26:05 +0000 (17:26 +0000)]
(xdver): Dump version string.

18 years ago(guerrilla): Tell sector owner when partisans take over. But don't
Markus Armbruster [Fri, 27 Jan 2006 19:53:24 +0000 (19:53 +0000)]
(guerrilla): Tell sector owner when partisans take over.  But don't
disclose che casualties then.

18 years ago(main, print_usage): New options -h and -v.
Markus Armbruster [Fri, 27 Jan 2006 18:01:33 +0000 (18:01 +0000)]
(main, print_usage): New options -h and -v.

(print_usage): Improve usage message.

18 years ago(main, usage): New option -v.
Markus Armbruster [Fri, 27 Jan 2006 18:00:47 +0000 (18:00 +0000)]
(main, usage): New option -v.

(usage): Improve usage message.

18 years ago(vers): Don't report KSU distribution (1.04 in all known versions),
Markus Armbruster [Fri, 27 Jan 2006 17:59:06 +0000 (17:59 +0000)]
(vers): Don't report KSU distribution (1.04 in all known versions),
Chainsaw version (4.00 since Empire 2, ca. 1995) and Wolfpack version
(used to be the version number after the first dot).
(KSU_DIST, CHAINSAW_DIST, WOLFPACK_DIST): Unused, remove.

(version): New.
(EMP_VERS_MAJOR, EMP_VERS_MINOR, EMP_VERS_PATCH): Remove.  Users
changed to use version[] instead.  version[] is slightly easier to
initialize from configure.ac.
(check-version): No longer needed, remove.

(legal): New.
(vers, main): Show it.

18 years agoChange package name to Wolfpack Empire. Supply tarname, so it stays
Markus Armbruster [Fri, 27 Jan 2006 17:38:53 +0000 (17:38 +0000)]
Change package name to Wolfpack Empire.  Supply tarname, so it stays
empire.

18 years agoCosmetics.
Markus Armbruster [Thu, 26 Jan 2006 18:44:39 +0000 (18:44 +0000)]
Cosmetics.

18 years ago(info.nr/all, info.html/all.html): Don't pick up random junk from the
Markus Armbruster [Mon, 23 Jan 2006 21:33:13 +0000 (21:33 +0000)]
(info.nr/all, info.html/all.html): Don't pick up random junk from the
filesystem.

18 years ago(sources.mk): Link from $(srcdir) if compiling from tarball. Why?
Markus Armbruster [Mon, 23 Jan 2006 21:14:53 +0000 (21:14 +0000)]
(sources.mk): Link from $(srcdir) if compiling from tarball.  Why?
It's distributed in $(srcdir), but required in build directory.

(distclean, bld_distgen): Don't distribute subjects.mk, it's not being
used with a separate build tree.

18 years ago(ac): Add file that should have been added in rev. 1.24.
Markus Armbruster [Mon, 23 Jan 2006 20:47:25 +0000 (20:47 +0000)]
(ac): Add file that should have been added in rev. 1.24.

18 years agoNot for development note.
Markus Armbruster [Sun, 22 Jan 2006 22:37:17 +0000 (22:37 +0000)]
Not for development note.

18 years agoFix making of build directories from sources.mk.
Markus Armbruster [Sun, 22 Jan 2006 22:32:38 +0000 (22:32 +0000)]
Fix making of build directories from sources.mk.

18 years ago(check-version): Didn't work with separate build tree.
Markus Armbruster [Sun, 22 Jan 2006 22:18:25 +0000 (22:18 +0000)]
(check-version): Didn't work with separate build tree.