Commit graph

1825 commits

Author SHA1 Message Date
433bcb0d19 (xdump): Nicer prompts. 2006-02-26 18:16:10 +00:00
3597934c40 (sources.mk): Avoid harmless circular dependency. 2006-02-26 08:29:12 +00:00
f5a9284867 Update known contributors comment. 2006-02-24 21:35:27 +00:00
73149fb151 Boilerplate file comment. 2006-02-24 21:23:46 +00:00
c9b5c87d1e (vers): Fix spacing. 2006-02-24 19:05:54 +00:00
7457fef9e7 (update_wantmin, update_policy_check, demand_check, upda): Remove the
ability to switch off demand updates by setting update_wantmin to
zero.  Setting update_demandpolicy to UDDEM_DISABLE does the job.

(update_policy_check): Fix lower bound for blitz_time.
2006-02-24 19:02:01 +00:00
198fad473e Rework obsolete comment on hours file, an move it where it belongs:
next to variable definitions and into econfig doc strings.
2006-02-24 18:33:58 +00:00
5b2f7a4d82 (vers): Clean up damage spill matrix.
(vers): Move show_custom() down somewhat.

(show_custom): Point players to show command.
2006-02-23 18:34:42 +00:00
38fdf1ba43 (config_tables, custom_tables, read_config_tables, read_custom_tables)
(read_config_table_file, read_custom_table_file): Rename.
2006-02-23 18:31:23 +00:00
99a1450c98 (EFF_CUSTOM): New.
(read_config_table_file): Set it.
(show_custom): Show it.
(vers): Use it.
2006-02-23 08:37:46 +00:00
5537d902b7 (player_main): Don't end session silently when init_nats() fails. 2006-02-23 07:40:11 +00:00
08501fa9c3 (init_nats): Use CANT_HAPPEN() where appropriate. 2006-02-23 07:38:38 +00:00
0bb11049f4 Document not to edit this file to customize a game. 2006-02-23 07:36:31 +00:00
91f88cf2ba (show_opts): Revert rev. 1.13 `Pretend SHIPNAMES still exists...'
Clients had four months to adapt.  Moreover, there have been other
changes that could well break clients, so backward compatibility is
gone anyway.
2006-02-23 07:32:41 +00:00
3700e33494 Document unused member. 2006-02-23 07:23:52 +00:00
c6884e9c77 Minor clarifications. Document play's use of C_EXIT for errors. 2006-02-23 07:21:22 +00:00
0e8b31500e (banfil, authfil): Remove. Matching user is useless, because the
player can send whatever he wants.  Banning IPs is better done with a
packet filter.  That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.
2006-02-22 22:12:18 +00:00
6b5aa6b556 Doc improvement. 2006-02-22 21:12:20 +00:00
f078ca4d0d (may_play): Clarify deity login rejection message. 2006-02-22 21:08:09 +00:00
02ddee69fb (banfil, authfil): Remove. Matching user is useless, because the
player can send whatever he wants.  Banning IPs is better done with a
packet filter.  That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.
2006-02-22 20:57:51 +00:00
342d7b33ce (may_play): New, factored out of play_cmd() and kill_cmd().
(play_cmd, kill_cmd): Use it.
(player_main): Don't check authfil, caller takes care of that.
2006-02-22 19:50:01 +00:00
504305357d (player): Rename member validated to authenticated. 2006-02-22 19:20:41 +00:00
Ron Koenderink
2147583a9e (set_dirs) [_WIN32]: Add the ability to deal with Windows
file and directory names.
2006-02-21 20:15:55 +00:00
783b00bbad (ichrstr): Rename member i_vtype to i_uid.
(ichr_ca): Rename selector vtype to uid.
2006-02-20 05:35:58 +00:00
96a1e8277a Make Emacs use c-mode. 2006-02-20 05:24:44 +00:00
Ron Koenderink
0f23f96fe0 (lchr[], nchr[], mchr[], plchr[]) [_WIN32]:
Add size to array declarations to compile in WIN32.
2006-02-19 21:05:55 +00:00
2ddc989e09 Fit for the general public, not just for GUINEA_PIGS. Closes #928396. 2006-02-19 18:47:50 +00:00
d69dfc2b09 (set_dirs): New, factored out of emp_config(). Also fix for relative
file name argument.
2006-02-19 18:36:36 +00:00
0b1db8f379 (main): Fix for relative builtindir (pathological...). 2006-02-19 18:33:49 +00:00
b43d43392a Document interpretation of relative file names. 2006-02-19 18:33:02 +00:00
53a564d474 (lndchr): Document that members l_gun and l_shell are unused.
(lchr_ca): Remove selectors g_build and s_build.  Update land.config.
2006-02-19 18:30:13 +00:00
c9f530846e (uninstall): Implement. 2006-02-19 17:19:16 +00:00
9559abb506 (verify_fail): New.
(verify_row): Use it.
2006-02-19 17:08:35 +00:00
6bd0eabb21 (ef_init): Remove superflous size initialization for tables that are
initialized from builtin config files.
(ef_init_chr): Unused, remove.
2006-02-19 17:07:04 +00:00
fe53057977 (xuheader): Fix misleading diagnostics.
(xundump1): Fix table shrinking.
2006-02-19 17:03:33 +00:00
24910a0681 Fix the previous revision. 2006-02-19 15:42:48 +00:00
d4edc2761d Split excessively wide tables. No functional change. 2006-02-19 15:41:37 +00:00
3a73dce58e Permit field repetition in each part of vertically split tables,
provided the values all match:
(caseen): New.
(xundump): Initialize and finalize it.
(xundump2): Update it.
(deffld): Deal with repetition.
(fldval_must_match): New, considers repetition as well as NSC_CONST.
(setnum, setstr): Use it.
2006-02-19 15:25:35 +00:00
c12cc62875 (need_uid, is_partial): Rename.
(xuheader1, chkflds): Collect all code dealing with index field of
vertically split tables in chkflds().
2006-02-19 15:15:40 +00:00
c596577d32 (mchrstr, plchrstr, lchrstr, nchrstr): New member m_type, pl_type,
l_type, n_type.
(mchr_ca, plchr_ca, lchr_ca, nchr_ca): New selector type.  Update
builtin config files.
2006-02-19 09:47:26 +00:00
99c533fef7 Fix the previous revision. 2006-02-19 09:21:21 +00:00
b4161cd7e2 (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.
2006-02-19 09:15:46 +00:00
dae17432ae (lndchr): Rename member l_mxland to l_nland for consistency with
similar unit characteristics.
2006-02-19 07:32:03 +00:00
9a30f30107 (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.
2006-02-19 07:04:30 +00:00
ac0263d2ae (emp_config): Non-portable strndup() crept into rev. 1.33. Replace by
portable code.
2006-02-18 16:48:23 +00:00
3a9f9f6b3e (print_config): When km_comment starts with '#', don't prepend "\n#". 2006-02-18 16:12:50 +00:00
fd461e7bf5 (empfile, SYMTAB): Reorder so that symbol tables are together. Sort
them alphabetically.  Factor out commonalities into new SYMTAB().  No
functional changes.
2006-02-18 15:02:18 +00:00
a0bd72feed Collect all symbol tables in new symbol.c. No functional changes. 2006-02-18 14:55:29 +00:00
bd65a84eb5 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.
2006-02-18 13:57:52 +00:00
e4865d473e (configdir): New, to be used for loading configuration tables.
(emp_config): Set it to econfig's directory.
2006-02-18 12:43:17 +00:00