]>
git.pond.sub.org Git - empserver/log
Markus Armbruster [Sun, 26 Mar 2006 07:46:49 +0000 (07:46 +0000)]
Remove silly superflous parenthesis.
Markus Armbruster [Sat, 25 Mar 2006 20:11:55 +0000 (20:11 +0000)]
(getele): Zero-terminate empty telegrams. Returned telegram was
broken in rev. 1.9. ~p never worked.
Markus Armbruster [Sat, 25 Mar 2006 19:59:21 +0000 (19:59 +0000)]
Fix land unit speed. Reported by Pat Loney. Fix spelling.
Markus Armbruster [Sat, 25 Mar 2006 19:16:35 +0000 (19:16 +0000)]
(buil): Simplify the loop for building multiple units. Unit type
argument "" no longer makes it prompt for the unit type on every
iteration.
Markus Armbruster [Sat, 25 Mar 2006 18:56:34 +0000 (18:56 +0000)]
(buil): Return RET_FAIL on insufficient tech for bridge instead of
literal 2 (which is RET_SYN). Return RET_SYN on incorrect first
argument.
Markus Armbruster [Sat, 25 Mar 2006 16:36:45 +0000 (16:36 +0000)]
(build_ship, build_land, build_plane): Compute cost in floating-point.
It's better to round just once, when subtracting player->dolcost from
nat_money.
Markus Armbruster [Sat, 25 Mar 2006 16:21:48 +0000 (16:21 +0000)]
(build_can_afford): New.
(build_ship, build_land, build_bridge, build_nuke, build_plane)
(build_tower): Use it. This changes some messages. Fixes ancient
bridge building race condition: while prompting for direction, another
build could clobber cash.
(cash): Remove.
Markus Armbruster [Sat, 25 Mar 2006 15:26:29 +0000 (15:26 +0000)]
(trade_check_item_ok): New.
(trade_check_ok): Use it and simplify.
(set): Use new trade_check_item_ok(). The code replaced by it didn't
work (abusable bug).
Markus Armbruster [Sat, 25 Mar 2006 15:11:17 +0000 (15:11 +0000)]
(ontradingblock, trdswitchown): Second parameter is a generic pointer,
change it from int * to void *. Callers changed not to cast to int *.
Markus Armbruster [Sat, 25 Mar 2006 15:03:32 +0000 (15:03 +0000)]
(genstr): Redundant. Replace by struct genitem.
Markus Armbruster [Sat, 25 Mar 2006 10:15:13 +0000 (10:15 +0000)]
Define feature test macro required for PTHREAD_STACK_MIN on some
systems, e.g. Solaris.
Markus Armbruster [Sat, 25 Mar 2006 09:08:58 +0000 (09:08 +0000)]
Fix the previous revision.
Markus Armbruster [Sat, 25 Mar 2006 07:49:37 +0000 (07:49 +0000)]
(empth_create): LWP yields, and it's the reference implementation.
Document and fix the others.
Markus Armbruster [Sat, 25 Mar 2006 07:05:34 +0000 (07:05 +0000)]
(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h
defines them would be possible, but isn't worth the trouble. Replace
by unabbreviated types.
Markus Armbruster [Thu, 23 Mar 2006 20:48:49 +0000 (20:48 +0000)]
Use NULL instead of (FOO *)0, it's easier to read.
Markus Armbruster [Thu, 23 Mar 2006 20:32:29 +0000 (20:32 +0000)]
(dirchar, neighsects, login_coms, lookup_list, g_distptrs, level_easy)
(level_log, levelnames): Internal linkage.
Markus Armbruster [Thu, 23 Mar 2006 20:13:38 +0000 (20:13 +0000)]
(map): Simplify loop control.
Markus Armbruster [Thu, 23 Mar 2006 19:50:25 +0000 (19:50 +0000)]
(marc, navi): Permit any whitespace between route and optional
argument for radar, lookout, sonar, not just spaces.
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.