]>
git.pond.sub.org Git - empserver/log
Markus Armbruster [Thu, 23 Mar 2006 07:58:03 +0000 (07:58 +0000)]
(do_conv, enli, explore, move, shoo, s_commod): sct_mobil was changed
from u_char to short in 3.0.0, but many assignments still cast to
u_char. Remove casts.
Markus Armbruster [Thu, 23 Mar 2006 07:46:26 +0000 (07:46 +0000)]
(do_mob_ship, do_mob_land): Remove superflous casts.
(do_mob_land): Remove superflous check for excess mobility.
Markus Armbruster [Thu, 23 Mar 2006 06:54:56 +0000 (06:54 +0000)]
Previous revision broke canal navigation, fix.
Markus Armbruster [Thu, 23 Mar 2006 06:17:30 +0000 (06:17 +0000)]
Bump version to 4.3.1.
Markus Armbruster [Sun, 19 Mar 2006 10:05:20 +0000 (10:05 +0000)]
Fix editing accident in revision before the previous. More 4.3.0
polishing.
Markus Armbruster [Sun, 19 Mar 2006 08:24:52 +0000 (08:24 +0000)]
Update 4.3.0 date.
Markus Armbruster [Sat, 18 Mar 2006 18:14:56 +0000 (18:14 +0000)]
Terminology fix.
Markus Armbruster [Sat, 18 Mar 2006 18:13:14 +0000 (18:13 +0000)]
Hints on GNU make.
Markus Armbruster [Sat, 18 Mar 2006 17:46:32 +0000 (17:46 +0000)]
(CFLAGS, CPPFLAGS): POSIX make has only CFLAGS. Fold CPPFLAGS into
CFLAGS. Use CFLAGS when linking, to match POSIX make implicit rule.
Markus Armbruster [Sat, 18 Mar 2006 16:46:58 +0000 (16:46 +0000)]
Search for terminal stuff in -lcurses as well.
Markus Armbruster [Sat, 11 Mar 2006 08:40:27 +0000 (08:40 +0000)]
Correct reference to doc/xdump.
Markus Armbruster [Sat, 11 Mar 2006 08:36:50 +0000 (08:36 +0000)]
Refer to xdump.
Markus Armbruster [Thu, 9 Mar 2006 22:04:17 +0000 (22:04 +0000)]
(may_play): More helpful diagnosis and log.
Markus Armbruster [Thu, 9 Mar 2006 21:51:27 +0000 (21:51 +0000)]
(privip): Lacked the IPv4 mapped IPv6 address for localhost.
Markus Armbruster [Thu, 9 Mar 2006 21:21:58 +0000 (21:21 +0000)]
Use touch to touch stamp files, > doesn't update mtime of existing
file on some systems. Weird.
Markus Armbruster [Thu, 9 Mar 2006 20:58:36 +0000 (20:58 +0000)]
(client): Don't make $(termlib) a prerequisite, pass it in $(LDLIBS).
The old version didn't work on some systems.
Markus Armbruster [Wed, 8 Mar 2006 20:19:45 +0000 (20:19 +0000)]
Final polish for 4.3.0.
Markus Armbruster [Wed, 8 Mar 2006 20:16:18 +0000 (20:16 +0000)]
Doc fix.
Markus Armbruster [Wed, 8 Mar 2006 20:10:43 +0000 (20:10 +0000)]
*** empty log message ***
Ron Koenderink [Wed, 8 Mar 2006 18:45:56 +0000 (18:45 +0000)]
(termio) [_WIN32]: Change remaining "n"s to "records" for the
WIN32 ReadConsole(). Fixes broken exec command.
Broken in Rev 1.17.
Markus Armbruster [Wed, 8 Mar 2006 18:07:30 +0000 (18:07 +0000)]
*** empty log message ***
Markus Armbruster [Tue, 7 Mar 2006 19:06:36 +0000 (19:06 +0000)]
Update.
Markus Armbruster [Mon, 6 Mar 2006 19:39:17 +0000 (19:39 +0000)]
Update for 4.3.0.
Markus Armbruster [Mon, 6 Mar 2006 19:28:39 +0000 (19:28 +0000)]
Update.
Markus Armbruster [Mon, 6 Mar 2006 19:27:32 +0000 (19:27 +0000)]
Cosmetics.
Markus Armbruster [Mon, 6 Mar 2006 18:33:52 +0000 (18:33 +0000)]
xdump's no longer experimental, update accordingly.
Markus Armbruster [Mon, 6 Mar 2006 18:33:00 +0000 (18:33 +0000)]
Caution deities on customization.
Markus Armbruster [Mon, 6 Mar 2006 18:27:37 +0000 (18:27 +0000)]
New doc/xdump.
Markus Armbruster [Mon, 6 Mar 2006 18:24:39 +0000 (18:24 +0000)]
Doc fix.
Markus Armbruster [Mon, 6 Mar 2006 18:23:41 +0000 (18:23 +0000)]
(ef_open): Zero cache size (empty EFF_MEM file) can lead to null cache
on some systems, which confuses assertions. Force non-zero size.
Markus Armbruster [Mon, 6 Mar 2006 18:21:36 +0000 (18:21 +0000)]
AIX needs -lcurses for setupterm().
Markus Armbruster [Sat, 4 Mar 2006 21:18:15 +0000 (21:18 +0000)]
MSYS ships an obsolete version of GNU make which doesn't grok
order-only prerequisites. They were used to make directories
info.html, info.nr, lib. Make them ahead of time, in configure. Also
fixes distclean not removing them.
Markus Armbruster [Sat, 4 Mar 2006 06:55:12 +0000 (06:55 +0000)]
Check for -lws2_32 properly. The old code relied on $host_os, which
wasn't defined.
Markus Armbruster [Wed, 1 Mar 2006 07:21:14 +0000 (07:21 +0000)]
Doc fix.
Markus Armbruster [Tue, 28 Feb 2006 21:19:21 +0000 (21:19 +0000)]
Doc update.
Markus Armbruster [Tue, 28 Feb 2006 20:09:54 +0000 (20:09 +0000)]
(player_coms): Update xdump's c_form to current syntax.
Markus Armbruster [Tue, 28 Feb 2006 20:04:09 +0000 (20:04 +0000)]
Remove note on self-documenting econfig, as it's of historical
interest only.
Explain how to use custom_tables.
Markus Armbruster [Mon, 27 Feb 2006 20:58:26 +0000 (20:58 +0000)]
Update to current command syntax, cover meta. Refer to doc/xdump (to
be written). Less detail on output. Document current shortcomings.
Markus Armbruster [Sun, 26 Feb 2006 18:16:10 +0000 (18:16 +0000)]
(xdump): Nicer prompts.
Markus Armbruster [Sun, 26 Feb 2006 08:29:12 +0000 (08:29 +0000)]
(sources.mk): Avoid harmless circular dependency.
Markus Armbruster [Fri, 24 Feb 2006 21:35:27 +0000 (21:35 +0000)]
Update known contributors comment.
Markus Armbruster [Fri, 24 Feb 2006 21:23:46 +0000 (21:23 +0000)]
Boilerplate file comment.
Markus Armbruster [Fri, 24 Feb 2006 19:05:54 +0000 (19:05 +0000)]
(vers): Fix spacing.
Markus Armbruster [Fri, 24 Feb 2006 19:02:01 +0000 (19:02 +0000)]
(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.
Markus Armbruster [Fri, 24 Feb 2006 18:33:58 +0000 (18:33 +0000)]
Rework obsolete comment on hours file, an move it where it belongs:
next to variable definitions and into econfig doc strings.
Markus Armbruster [Thu, 23 Feb 2006 18:34:42 +0000 (18:34 +0000)]
(vers): Clean up damage spill matrix.
(vers): Move show_custom() down somewhat.
(show_custom): Point players to show command.
Markus Armbruster [Thu, 23 Feb 2006 18:31:23 +0000 (18:31 +0000)]
(config_tables, custom_tables, read_config_tables, read_custom_tables)
(read_config_table_file, read_custom_table_file): Rename.
Markus Armbruster [Thu, 23 Feb 2006 08:37:46 +0000 (08:37 +0000)]
(EFF_CUSTOM): New.
(read_config_table_file): Set it.
(show_custom): Show it.
(vers): Use it.
Markus Armbruster [Thu, 23 Feb 2006 07:40:11 +0000 (07:40 +0000)]
(player_main): Don't end session silently when init_nats() fails.
Markus Armbruster [Thu, 23 Feb 2006 07:38:38 +0000 (07:38 +0000)]
(init_nats): Use CANT_HAPPEN() where appropriate.
Markus Armbruster [Thu, 23 Feb 2006 07:36:31 +0000 (07:36 +0000)]
Document not to edit this file to customize a game.
Markus Armbruster [Thu, 23 Feb 2006 07:32:41 +0000 (07:32 +0000)]
(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.
Markus Armbruster [Thu, 23 Feb 2006 07:23:52 +0000 (07:23 +0000)]
Document unused member.
Markus Armbruster [Thu, 23 Feb 2006 07:21:22 +0000 (07:21 +0000)]
Minor clarifications. Document play's use of C_EXIT for errors.
Markus Armbruster [Wed, 22 Feb 2006 22:12:18 +0000 (22:12 +0000)]
(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.
Markus Armbruster [Wed, 22 Feb 2006 21:12:20 +0000 (21:12 +0000)]
Doc improvement.
Markus Armbruster [Wed, 22 Feb 2006 21:08:09 +0000 (21:08 +0000)]
(may_play): Clarify deity login rejection message.
Markus Armbruster [Wed, 22 Feb 2006 20:57:51 +0000 (20:57 +0000)]
(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.
Markus Armbruster [Wed, 22 Feb 2006 19:50:01 +0000 (19:50 +0000)]
(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.
Markus Armbruster [Wed, 22 Feb 2006 19:20:41 +0000 (19:20 +0000)]
(player): Rename member validated to authenticated.
Ron Koenderink [Tue, 21 Feb 2006 20:15:55 +0000 (20:15 +0000)]
(set_dirs) [_WIN32]: Add the ability to deal with Windows
file and directory names.
Markus Armbruster [Mon, 20 Feb 2006 05:35:58 +0000 (05:35 +0000)]
(ichrstr): Rename member i_vtype to i_uid.
(ichr_ca): Rename selector vtype to uid.
Markus Armbruster [Mon, 20 Feb 2006 05:24:44 +0000 (05:24 +0000)]
Make Emacs use c-mode.
Ron Koenderink [Sun, 19 Feb 2006 21:05:55 +0000 (21:05 +0000)]
(lchr[], nchr[], mchr[], plchr[]) [_WIN32]:
Add size to array declarations to compile in WIN32.
Markus Armbruster [Sun, 19 Feb 2006 18:47:50 +0000 (18:47 +0000)]
Fit for the general public, not just for GUINEA_PIGS. Closes #928396.
Markus Armbruster [Sun, 19 Feb 2006 18:36:36 +0000 (18:36 +0000)]
(set_dirs): New, factored out of emp_config(). Also fix for relative
file name argument.
Markus Armbruster [Sun, 19 Feb 2006 18:33:49 +0000 (18:33 +0000)]
(main): Fix for relative builtindir (pathological...).
Markus Armbruster [Sun, 19 Feb 2006 18:33:02 +0000 (18:33 +0000)]
Document interpretation of relative file names.
Markus Armbruster [Sun, 19 Feb 2006 18:30:13 +0000 (18:30 +0000)]
(lndchr): Document that members l_gun and l_shell are unused.
(lchr_ca): Remove selectors g_build and s_build. Update land.config.
Markus Armbruster [Sun, 19 Feb 2006 17:19:16 +0000 (17:19 +0000)]
(uninstall): Implement.
Markus Armbruster [Sun, 19 Feb 2006 17:08:35 +0000 (17:08 +0000)]
(verify_fail): New.
(verify_row): Use it.
Markus Armbruster [Sun, 19 Feb 2006 17:07:04 +0000 (17:07 +0000)]
(ef_init): Remove superflous size initialization for tables that are
initialized from builtin config files.
(ef_init_chr): Unused, remove.
Markus Armbruster [Sun, 19 Feb 2006 17:03:33 +0000 (17:03 +0000)]
(xuheader): Fix misleading diagnostics.
(xundump1): Fix table shrinking.
Markus Armbruster [Sun, 19 Feb 2006 15:42:48 +0000 (15:42 +0000)]
Fix the previous revision.
Markus Armbruster [Sun, 19 Feb 2006 15:41:37 +0000 (15:41 +0000)]
Split excessively wide tables. No functional change.
Markus Armbruster [Sun, 19 Feb 2006 15:25:35 +0000 (15:25 +0000)]
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.
Markus Armbruster [Sun, 19 Feb 2006 15:15:40 +0000 (15:15 +0000)]
(need_uid, is_partial): Rename.
(xuheader1, chkflds): Collect all code dealing with index field of
vertically split tables in chkflds().
Markus Armbruster [Sun, 19 Feb 2006 09:47:26 +0000 (09:47 +0000)]
(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.
Markus Armbruster [Sun, 19 Feb 2006 09:21:21 +0000 (09:21 +0000)]
Fix the previous revision.
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.
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.
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.
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.
Markus Armbruster [Sat, 18 Feb 2006 16:12:50 +0000 (16:12 +0000)]
(print_config): When km_comment starts with '#', don't prepend "\n#".
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.
Markus Armbruster [Sat, 18 Feb 2006 14:55:29 +0000 (14:55 +0000)]
Collect all symbol tables in new symbol.c. No functional changes.
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.
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.
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.
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.
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.
Markus Armbruster [Fri, 17 Feb 2006 18:04:07 +0000 (18:04 +0000)]
(lost_ca, trade_ca): Provide proper ca_table for selector type.
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.
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.
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.
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.
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.
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.
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.
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.