]> git.pond.sub.org Git - empserver/log
empserver
20 years ago(player_coms): Fix c_form for upgrade. From Marc Olzheim.
Markus Armbruster [Wed, 28 Jan 2004 22:12:27 +0000 (22:12 +0000)]
(player_coms): Fix c_form for upgrade.  From Marc Olzheim.

20 years agoUse strict & warnings. Fix several minor bugs uncovered by it.
Markus Armbruster [Wed, 28 Jan 2004 21:21:48 +0000 (21:21 +0000)]
Use strict & warnings.  Fix several minor bugs uncovered by it.

Semantics of assigning to $[ changed in Perl 5, and its use is `highly
discouraged'.  Programs obviously assumed $[ affects all arrays, but
it doesn't in Perl 5.  If these programs ever worked, then certainly
not with Perl 5.  Remove the assignments and shift indexes
accordingly.

20 years agoDocument automatic fortification. Clarify engineer bonus.
Markus Armbruster [Wed, 28 Jan 2004 21:14:50 +0000 (21:14 +0000)]
Document automatic fortification.  Clarify engineer bonus.

20 years ago(guerrilla): Give wandering che inexact, somewhat randomized
Markus Armbruster [Wed, 28 Jan 2004 19:30:15 +0000 (19:30 +0000)]
(guerrilla): Give wandering che inexact, somewhat randomized
information on military.  Closes #750533.  Why?  Wandering che pick a
sector with minimal military from the adjacent sectors that can get
che.  Ties are broken in favour of the first sector examined.  Since
sectors are examined in the order given by by diroff[], che prefer
directions with low index in diroff[].  This tends to channel che
towards the northeast.  But the change makes ties very unlikely.

20 years ago(lnd_sweep, lnd_mar_one_sector): Automatic fortification on excess
Markus Armbruster [Wed, 28 Jan 2004 19:02:29 +0000 (19:02 +0000)]
(lnd_sweep, lnd_mar_one_sector): Automatic fortification on excess
mobility may fortify units while they are `at the march prompt'.
That's okay.  But action that consumes mobility must zap the
fortification again.

20 years ago(do_mob_land): Use excess mobility to fortify. Note that units
Markus Armbruster [Wed, 28 Jan 2004 17:00:29 +0000 (17:00 +0000)]
(do_mob_land): Use excess mobility to fortify.  Note that units
requiring fuel to gain mobility never get excess mobility.  Adapted
patch from from Marc Olzheim.  Closes #725457.

20 years ago(is_engineer, has_helpful_engineer): Rename. Require allied
Markus Armbruster [Wed, 28 Jan 2004 10:46:57 +0000 (10:46 +0000)]
(is_engineer, has_helpful_engineer): Rename.  Require allied
engineers.  This affecs command `fortify'.

20 years ago(lnd_fortify): New, factored out of fort().
Markus Armbruster [Wed, 28 Jan 2004 09:31:22 +0000 (09:31 +0000)]
(lnd_fortify): New, factored out of fort().
(fort): Use it; no functional changes.
(is_engineer): Move to logical place, external linkage.

20 years agoRemove declarations of stuff that doesn't exist.
Markus Armbruster [Wed, 28 Jan 2004 09:27:28 +0000 (09:27 +0000)]
Remove declarations of stuff that doesn't exist.

20 years agoFix typo. Closes #824252.
Markus Armbruster [Fri, 23 Jan 2004 16:48:23 +0000 (16:48 +0000)]
Fix typo.  Closes #824252.

20 years ago(player_new): Proper error checking. Oops, now it may return NULL.
Markus Armbruster [Fri, 23 Jan 2004 13:44:19 +0000 (13:44 +0000)]
(player_new): Proper error checking.  Oops, now it may return NULL.
Proper error checking in callers required.
(update_wait, market_update): If player_new() returns null pointer,
skip update.
(player_accept): If player_new() returns null pointer, close
connection.

20 years ago(map, draw_map, MAP_HIGH): New map command flag `h' to highlight own
Markus Armbruster [Wed, 21 Jan 2004 14:54:56 +0000 (14:54 +0000)]
(map, draw_map, MAP_HIGH): New map command flag `h' to highlight own
sectors; from Marc Olzheim.

20 years ago(sabo): Damage report to player was in deity coordinates, fix. Closes
Markus Armbruster [Wed, 21 Jan 2004 10:37:56 +0000 (10:37 +0000)]
(sabo): Damage report to player was in deity coordinates, fix.  Closes
#856856.

20 years agoDon't explain sector production twice; replace one copy by a
Markus Armbruster [Tue, 20 Jan 2004 21:37:17 +0000 (21:37 +0000)]
Don't explain sector production twice; replace one copy by a
reference.  Document execution of ship orders and sail paths.

20 years ago(ROLLOVER_AVAIL, opt_ROLLOVER_AVAIL, Options, do_feed, prod, newe):
Markus Armbruster [Tue, 20 Jan 2004 16:51:43 +0000 (16:51 +0000)]
(ROLLOVER_AVAIL, opt_ROLLOVER_AVAIL, Options, do_feed, prod, newe):
New option ROLLOVER_AVAIL; from Drake Diedrich.

20 years ago[apollo]: Tables were gutted for unknown reasons. Don't.
Markus Armbruster [Tue, 20 Jan 2004 15:50:11 +0000 (15:50 +0000)]
[apollo]: Tables were gutted for unknown reasons.  Don't.

20 years ago[_WIN32] Fix previous rev.
Markus Armbruster [Tue, 20 Jan 2004 15:43:44 +0000 (15:43 +0000)]
[_WIN32] Fix previous rev.

20 years ago(empth_exit): Fix shutdown on reading "quit" from stdin (crash bug,
Markus Armbruster [Thu, 15 Jan 2004 16:29:53 +0000 (16:29 +0000)]
(empth_exit): Fix shutdown on reading "quit" from stdin (crash bug,
reportedly).

20 years agoFix previous rev.
Markus Armbruster [Thu, 15 Jan 2004 14:39:24 +0000 (14:39 +0000)]
Fix previous rev.

20 years ago(io_select, io_init, io_open, io_close, io_output, io_flush, io_write,
Markus Armbruster [Thu, 15 Jan 2004 14:32:00 +0000 (14:32 +0000)]
(io_select, io_init, io_open, io_close, io_output, io_flush, io_write,
io_puts, iom_create, iom_getmask, iom_set, iom_clear, iom_zero):
Portability bug: io_select() passed bit_fdmask to select().  This
breaks the fd_set abstraction, and works only with the traditional
Unix implementation of fd_set.  Use fd_set and its operations instead.
Remove unused source files.  Note: the offending code is currently
unsued.  But it's a time bomb, and fixing it also replaces a bunch of
code by standard library services.

20 years agoUnused, remove.
Markus Armbruster [Thu, 15 Jan 2004 14:07:15 +0000 (14:07 +0000)]
Unused, remove.

20 years agoMerge Makefile rev. 1.5. Update dependencies.
Markus Armbruster [Thu, 15 Jan 2004 13:49:40 +0000 (13:49 +0000)]
Merge Makefile rev. 1.5.  Update dependencies.

20 years agoPortability fixes: don't declare library functions, include
Markus Armbruster [Thu, 15 Jan 2004 13:43:50 +0000 (13:43 +0000)]
Portability fixes: don't declare library functions, include
appropriate headers.  Also remove some unused declarations.

20 years ago(main): Portability bug: code passed bit_fdmask to select(). This
Markus Armbruster [Thu, 15 Jan 2004 09:39:51 +0000 (09:39 +0000)]
(main): Portability bug: code passed bit_fdmask to select().  This
breaks the fd_set abstraction, and works only with the traditional
Unix implementation of fd_set.  Use fd_set and its operations instead.
Remove unused source files.

20 years agoFix previous rev.
Markus Armbruster [Thu, 15 Jan 2004 09:37:06 +0000 (09:37 +0000)]
Fix previous rev.

20 years agoRegenerated. Should be automatically generated by make and removed
Markus Armbruster [Tue, 13 Jan 2004 18:48:00 +0000 (18:48 +0000)]
Regenerated.  Should be automatically generated by make and removed
from the repository.

20 years ago(player_coms, lstats, lsta): Rename command `lstats' to `lstat' to
Markus Armbruster [Tue, 13 Jan 2004 18:46:48 +0000 (18:46 +0000)]
(player_coms, lstats, lsta): Rename command `lstats' to `lstat' to
match info as well as related commands `sstat' and `pstat'.  Rename
lstats() to lsta() to uphold the convention that functions
implementing commands are named like the command or its four character
prefix.  Closes #804587.

20 years ago(player_coms, best): `bestdistpath' and `bestpath' violate the rule
Markus Armbruster [Tue, 13 Jan 2004 18:23:26 +0000 (18:23 +0000)]
(player_coms, best): `bestdistpath' and `bestpath' violate the rule
that commands must be unique within the first four letters.  best()
implements both.  It calls BestDistPath() for the former, and
BestLandPath() for the latter.  However, BestDistPath() is just a
wrapper around BestLandPath(); it does exactly the same.  Drop
`bestdistpath'.

20 years ago(mineq): Rewrite. mineq("dumpcrap", "dump ") now yields ME_MISMATCH
Markus Armbruster [Tue, 13 Jan 2004 17:23:02 +0000 (17:23 +0000)]
(mineq): Rewrite.  mineq("dumpcrap", "dump ") now yields ME_MISMATCH
instead of ME_PARTIAL.  Closes #804611.

20 years ago(index, rindex): Obsolete BSDisms; remove. Use standard strchr() and
Markus Armbruster [Tue, 13 Jan 2004 10:32:35 +0000 (10:32 +0000)]
(index, rindex): Obsolete BSDisms; remove.  Use standard strchr() and
strrchr() instead.

20 years ago(ask_olist): Fix reporting of mobility required for attack. Closes
Markus Armbruster [Mon, 12 Jan 2004 20:13:28 +0000 (20:13 +0000)]
(ask_olist): Fix reporting of mobility required for attack.  Closes
#798045.

20 years ago(do_desi): Move check for redesignated capital behind the actual
Markus Armbruster [Mon, 12 Jan 2004 17:28:22 +0000 (17:28 +0000)]
(do_desi): Move check for redesignated capital behind the actual
redesignation.  Closes #803768.

20 years ago(index, rindex): Obsolete BSDisms; remove. Use standard strchr() and
Markus Armbruster [Thu, 8 Jan 2004 18:15:13 +0000 (18:15 +0000)]
(index, rindex): Obsolete BSDisms; remove.  Use standard strchr() and
strrchr() instead.
(setbuffer): Obsolete BSDism, unused; remove.

20 years ago(bzero, bcopy): Obsolete BSDisms; remove. Remove some calls without
Markus Armbruster [Thu, 8 Jan 2004 17:54:28 +0000 (17:54 +0000)]
(bzero, bcopy): Obsolete BSDisms; remove.  Remove some calls without
effect.  Replace calls by struct assignment where possible.  Replace
clear buffer, copy string to buffer by strncpy().  Use assignment to
clear when that's clearer.  Replace overlapping copy through bounce
buffer by memmove().  Replace rest by standard memset() and memcpy().
Also use sizeof() instead of literal array sizes for robustness, and
instead of symbolic array sizes for clarity.

20 years agoFix missing include <string.h>.
Markus Armbruster [Thu, 8 Jan 2004 17:26:18 +0000 (17:26 +0000)]
Fix missing include <string.h>.

20 years ago(copy, atopi, same): Remove, use strcpy(), atoi(), strcmp(). Callers
Markus Armbruster [Thu, 8 Jan 2004 10:20:44 +0000 (10:20 +0000)]
(copy, atopi, same): Remove, use strcpy(), atoi(), strcmp().  Callers
changed.  Remove empty source files.

20 years agoRemove superflous include.
Markus Armbruster [Thu, 8 Jan 2004 10:11:38 +0000 (10:11 +0000)]
Remove superflous include.

20 years ago(ffs): Unused, remove.
Markus Armbruster [Thu, 8 Jan 2004 10:10:19 +0000 (10:10 +0000)]
(ffs): Unused, remove.

20 years ago(login): Fix reading of country name and, if we lack getpass(),
Markus Armbruster [Thu, 8 Jan 2004 05:57:38 +0000 (05:57 +0000)]
(login): Fix reading of country name and, if we lack getpass(),
password.  Used to strip \r from country name (superflous), and not to
strip \n from password (required).

20 years agoFix previous rev.
Markus Armbruster [Tue, 6 Jan 2004 20:19:37 +0000 (20:19 +0000)]
Fix previous rev.

20 years ago(wrauth): Emit example `nowhereman@nowhere.land.edu' commented out.
Markus Armbruster [Tue, 6 Jan 2004 20:18:46 +0000 (20:18 +0000)]
(wrauth): Emit example `nowhereman@nowhere.land.edu' commented out.
nowhere.land.edu doesn't exist right now, but it might pop up any
time.

20 years ago(info): Use ANSI strerror() instead of non-portable sys_errlist[].
Markus Armbruster [Tue, 6 Jan 2004 20:08:53 +0000 (20:08 +0000)]
(info): Use ANSI strerror() instead of non-portable sys_errlist[].

20 years ago(logerror): Remove unused cruft.
Markus Armbruster [Tue, 6 Jan 2004 20:07:03 +0000 (20:07 +0000)]
(logerror): Remove unused cruft.

20 years agoFix title.
Markus Armbruster [Thu, 18 Dec 2003 09:17:07 +0000 (09:17 +0000)]
Fix title.

20 years ago(at_minimum, blocksig, emp_bitinit, filelogerror, iceil, ifloor,
Markus Armbruster [Wed, 17 Dec 2003 23:13:50 +0000 (23:13 +0000)]
(at_minimum, blocksig, emp_bitinit, filelogerror, iceil, ifloor,
mapdsq, mask, signame, strscan, sys_siglist, typed_wire, unblocksig):
Unused, remove.

(add_airport, add_to_fired_queue, air_damage, anti_torp, best_path,
bitinit2, blankrow, bmnxtsct, bp_init, build_mission_list,
build_mission_list_type, buildeff, candchrg, canshoot, cantorp,
cede_sect, cede_ship, checksect, client_cmd, coun_cmd,
deity_build_land, divide, do_conv, do_defdam, do_demo, do_desi,
do_mob_land, do_mob_plane, do_mob_sect, do_mob_ship, do_prod,
docountry, doland, doplane, doship, dosupport, dotsprintf, dounit,
empth_start, enlist, errcheck, filereport, find_airport, find_escorts,
findcondition, fire_dchrg, fire_torp, fltp_to_list, get_minimum,
getin, goodsect, grab_sect, grab_ship, grow_people, growfood, in_addr,
infect_people, init_mchr, init_pchr, init_plchr, is_engineer,
itemname, kill_cmd, landrepair, limit_level, list_cmd, lupgr,
materials_charge, materials_cost, meltitems, mission_pln_arm,
mission_pln_sel, move_map, nat_cap, num_units, outid, pass_cmd,
perform_mission, pinflak_planedamage, play_cmd, pln_equip, prexpense,
print_res, prplanes, prunits, pupgr, quiet_bigdef, quit_cmd, radmap2,
retreat_land1, retreat_ship1, s_commod, sanc_cmd, sarg_getrange,
scuttle_it, scuttle_land, set_target, share_incr, shiprepair,
shp_check_mines, shp_check_nav, shp_check_one_mines, shp_hit_mine,
shp_interdict, shp_mess, sort_lookup_list, starvation, supgr, swap,
take_casualties, trunc_people, upd_buildeff, upd_land, upd_ship,
use_ammo, user_cmd): Change linkage to static.

20 years agoList generated files that CVS doesn't ignore by default.
Markus Armbruster [Wed, 17 Dec 2003 23:02:40 +0000 (23:02 +0000)]
List generated files that CVS doesn't ignore by default.

20 years agoCosmetics.
Markus Armbruster [Wed, 17 Dec 2003 21:26:26 +0000 (21:26 +0000)]
Cosmetics.

20 years ago(show, show_item): New `show item'. From Ron Koenderink; changes to
Markus Armbruster [Wed, 17 Dec 2003 21:22:08 +0000 (21:22 +0000)]
(show, show_item): New `show item'.  From Ron Koenderink; changes to
info files heavily hacked by me.

20 years agoSpelling fixes.
Markus Armbruster [Wed, 17 Dec 2003 21:20:01 +0000 (21:20 +0000)]
Spelling fixes.

20 years agoerrno may not be a variable; users must include errno.h instead of
Markus Armbruster [Wed, 17 Dec 2003 21:18:12 +0000 (21:18 +0000)]
errno may not be a variable; users must include errno.h instead of
declaring it like `extern int errno'.

20 years ago(setfdtablesize): Remove. This may drop support for Sequent.
Markus Armbruster [Wed, 17 Dec 2003 21:14:00 +0000 (21:14 +0000)]
(setfdtablesize): Remove.  This may drop support for Sequent.

(getfdtablesize) [hpux]: Client and server had different versions.
Standardize on server's.

20 years agoFix previous rev.
Markus Armbruster [Wed, 17 Dec 2003 21:07:54 +0000 (21:07 +0000)]
Fix previous rev.

20 years agoMakefiles worked only if certain directories and generated files were
Markus Armbruster [Wed, 17 Dec 2003 21:01:37 +0000 (21:01 +0000)]
Makefiles worked only if certain directories and generated files were
already present.  These files are no longer in CVS.  Fix Makefiles.

20 years ago(show, show_item): New `show item'. From Ron Koenderink; changes to
Markus Armbruster [Wed, 17 Dec 2003 19:50:20 +0000 (19:50 +0000)]
(show, show_item): New `show item'.  From Ron Koenderink; changes to
info files heavily hacked by me.

20 years agoGenerated file, shouldn't have been committed.
Markus Armbruster [Wed, 17 Dec 2003 19:46:54 +0000 (19:46 +0000)]
Generated file, shouldn't have been committed.

20 years ago(edit, prsect, doland): Fix `editing' sector coordinates (copies
Markus Armbruster [Wed, 17 Dec 2003 17:24:30 +0000 (17:24 +0000)]
(edit, prsect, doland): Fix `editing' sector coordinates (copies
sector).  New: edit distribution sector, designation and new
designation.  From Ron Koenderink.

20 years ago(update_policy_check, diffx, diffy, takeover_plane): Prototypes were
Markus Armbruster [Wed, 17 Dec 2003 16:58:16 +0000 (16:58 +0000)]
(update_policy_check, diffx, diffy, takeover_plane): Prototypes were
missing.

20 years agoFix some damage done by indent-emp. Code is still hard to read.
Markus Armbruster [Wed, 17 Dec 2003 16:46:25 +0000 (16:46 +0000)]
Fix some damage done by indent-emp.  Code is still hard to read.

20 years agoRemove pragmas that promote certain serious warnings to errors on
Markus Armbruster [Sun, 14 Dec 2003 10:15:03 +0000 (10:15 +0000)]
Remove pragmas that promote certain serious warnings to errors on
windows.  For obvious reasons, such warnings ought to be fixed.
Making compilation abort is the sledgehammer method to force that.
It's a stupid method for us, as we develop on various platforms, and
don't test every single commit under Windows.  It gratuitously breaks
programs that work fine.  Leave them as warnings, and fix them on
sight.

20 years ago(edit): Rewrite of undocumented and broken feature: if there are extra
Markus Armbruster [Tue, 25 Nov 2003 19:16:18 +0000 (19:16 +0000)]
(edit): Rewrite of undocumented and broken feature: if there are extra
arguments, they are interpreted as key-value pairs, and edit does not
prompt for more.  From Ron Koenderink.
(player_coms): Document extended syntax.

20 years ago(sorde): Output format fixes from Ron Koenderink.
Markus Armbruster [Sun, 9 Nov 2003 13:33:17 +0000 (13:33 +0000)]
(sorde): Output format fixes from Ron Koenderink.

20 years ago(LND_SPY_DETECT_CHANCE): New.
Markus Armbruster [Sun, 9 Nov 2003 12:52:16 +0000 (12:52 +0000)]
(LND_SPY_DETECT_CHANCE): New.
(look_land, sabo, prunits, unitsatxy, lnd_mar_one_sector,
count_sect_units, takeover): Use it.  Closes bug#786369.

20 years ago(decl): Remove broken and redundant check of declarer's country
Markus Armbruster [Sun, 9 Nov 2003 10:53:06 +0000 (10:53 +0000)]
(decl): Remove broken and redundant check of declarer's country
number.  Check is redundant, because invalid values can come only from
natarg(), and those are checked above.  Check is broken because
natarg() returns negative value on error, not 255.

20 years agoUndo some ugly line line-breaks introduced by indent.
Markus Armbruster [Sun, 9 Nov 2003 10:47:36 +0000 (10:47 +0000)]
Undo some ugly line line-breaks introduced by indent.

20 years agoSpelling fix.
Markus Armbruster [Sun, 9 Nov 2003 10:46:32 +0000 (10:46 +0000)]
Spelling fix.

20 years agoRemove some comments that are no longer valid.
Markus Armbruster [Sun, 9 Nov 2003 10:45:26 +0000 (10:45 +0000)]
Remove some comments that are no longer valid.

20 years ago(perform_mission): Fix destruction of missiles. Closes bug#789415.
Markus Armbruster [Sun, 9 Nov 2003 10:42:29 +0000 (10:42 +0000)]
(perform_mission): Fix destruction of missiles.  Closes bug#789415.

20 years ago(chan): Don't require 254 BTUs even when not charging any (BLITZ).
Markus Armbruster [Sat, 4 Oct 2003 18:29:29 +0000 (18:29 +0000)]
(chan): Don't require 254 BTUs even when not charging any (BLITZ).

20 years agoList generated files and directories that CVS doesn't ignore by
Markus Armbruster [Sat, 4 Oct 2003 16:01:10 +0000 (16:01 +0000)]
List generated files and directories that CVS doesn't ignore by
default.

20 years agoAdd proper .SA; it's required by info.pl. Closes #793708.
Markus Armbruster [Sat, 4 Oct 2003 14:57:05 +0000 (14:57 +0000)]
Add proper .SA; it's required by info.pl.  Closes #793708.

20 years ago(parse_files): Choked on CVS, backup files, and more. Fix to work only on
Markus Armbruster [Sat, 4 Oct 2003 14:56:07 +0000 (14:56 +0000)]
(parse_files): Choked on CVS, backup files, and more.  Fix to work only on
*.t.  Closes #793707.

20 years agoList generated files and directories that CVS doesn't ignore by
Markus Armbruster [Sat, 4 Oct 2003 14:54:09 +0000 (14:54 +0000)]
List generated files and directories that CVS doesn't ignore by
default.

20 years agoMakefiles worked only if certain directories and generated files were
Markus Armbruster [Sat, 4 Oct 2003 14:22:52 +0000 (14:22 +0000)]
Makefiles worked only if certain directories and generated files were
already present.  Source distributions had them, but we didn't commit
them to CVS.  Fix Makefiles.

20 years agoGenerated file, shouldn't have been committed.
Markus Armbruster [Sat, 4 Oct 2003 14:19:50 +0000 (14:19 +0000)]
Generated file, shouldn't have been committed.

20 years agoIndented with src/scripts/indent-emp.
Markus Armbruster [Tue, 2 Sep 2003 20:48:48 +0000 (20:48 +0000)]
Indented with src/scripts/indent-emp.

20 years agoNew.
Markus Armbruster [Tue, 2 Sep 2003 20:45:34 +0000 (20:45 +0000)]
New.

20 years agoImport of Empire 4.2.12 v4.2.12
Markus Armbruster [Sat, 23 Aug 2003 12:23:04 +0000 (12:23 +0000)]
Import of Empire 4.2.12