]> git.pond.sub.org Git - empserver/log
empserver
20 years ago(opt_GRAB_THINGS, Options, get_materials): Remove option GRAB_THINGS.
Markus Armbruster [Thu, 11 Mar 2004 08:53:27 +0000 (08:53 +0000)]
(opt_GRAB_THINGS, Options, get_materials): Remove option GRAB_THINGS.

20 years ago(dodistribute): Work directly on item arrays instead of copies made by
Markus Armbruster [Wed, 10 Mar 2004 18:32:42 +0000 (18:32 +0000)]
(dodistribute): Work directly on item arrays instead of copies made by
getvec().  This is safe, because the old code made single copies and
always flushed them back into the unit structures.

20 years ago(dodeliver): Remove parameter vec, work with sp->sct_item[] instead.
Markus Armbruster [Wed, 10 Mar 2004 18:25:05 +0000 (18:25 +0000)]
(dodeliver): Remove parameter vec, work with sp->sct_item[] instead.
This is safe, because the only caller passed a copy of the latter
created with getvec(), and dodeliver() doesn't change it.  Caller
changed.  Return value no longer needed, remove.

20 years ago(populace): Remove parameter vec, work with sp->sct_item[] instead.
Markus Armbruster [Wed, 10 Mar 2004 17:59:37 +0000 (17:59 +0000)]
(populace): Remove parameter vec, work with sp->sct_item[] instead.
This is safe, because the only caller passed a copy of the latter
created with getvec(), and populace() doesn't change it.
(tax): Replace getvec() by direct, read-only item access.

20 years ago(pln_equip, mission_pln_equip): Work directly on item arrays instead
Markus Armbruster [Wed, 10 Mar 2004 13:35:54 +0000 (13:35 +0000)]
(pln_equip, mission_pln_equip): Work directly on item arrays instead
of copies made by getvec().  This is safe, because the old code made
single copies and always flushed them back into the unit structures
before flushing those.  Simplify.

20 years ago(pln_equip, mission_pln_equip): Rename item to itype. Use struct
Markus Armbruster [Wed, 10 Mar 2004 13:22:48 +0000 (13:22 +0000)]
(pln_equip, mission_pln_equip): Rename item to itype.  Use struct
ichrstr member i_vtype instead of pointer arithmetic to map from
`struct ichrstr *' to item type.  No functional changes.

20 years ago(sd, shp_missile_defense): Replace getvec() by direct, read-only item
Markus Armbruster [Wed, 10 Mar 2004 13:16:46 +0000 (13:16 +0000)]
(sd, shp_missile_defense): Replace getvec() by direct, read-only item
access.  This is correct, because the old code doesn't use the copy
after it changes the original in the unit structure.
(dd): Remove call of getvec() that has no effect.

20 years ago(quiet_bigdef): Work directly on item arrays instead of copies made by
Markus Armbruster [Wed, 10 Mar 2004 12:52:24 +0000 (12:52 +0000)]
(quiet_bigdef): Work directly on item arrays instead of copies made by
getvec().  This is safe, because the old code made single copies and
always flushed them back into the unit structures before flushing
those, in use_ammo(), or discarded both the copy and the unit
structure.

20 years agoSpelling fix. Closes #913151.
Markus Armbruster [Wed, 10 Mar 2004 07:24:56 +0000 (07:24 +0000)]
Spelling fix.  Closes #913151.

20 years agoSpelling fix. Closes #912922.
Markus Armbruster [Wed, 10 Mar 2004 07:20:56 +0000 (07:20 +0000)]
Spelling fix.  Closes #912922.

20 years ago(scra): Work directly on item arrays instead of copies made by
Markus Armbruster [Tue, 9 Mar 2004 19:32:43 +0000 (19:32 +0000)]
(scra): Work directly on item arrays instead of copies made by
getvec().  This is safe, because the old code made single copies and
always flushed them back into the unit structures before flushing
those.  To do: obey ITEM_MAX.

20 years ago(grin): Stop grinding before grind puts more than ITEM_MAX bar
Markus Armbruster [Tue, 9 Mar 2004 19:31:30 +0000 (19:31 +0000)]
(grin): Stop grinding before grind puts more than ITEM_MAX bar
constituents in sector.  Work directly on item arrays instead of
copies made by getvec().  This is safe, because the old code made
single copies and always flushed them back into the unit structures
before flushing those.

20 years ago(improve, shoo, spy, buildeff): Work directly on item arrays instead
Markus Armbruster [Tue, 9 Mar 2004 19:26:02 +0000 (19:26 +0000)]
(improve, shoo, spy, buildeff): Work directly on item arrays instead
of copies made by getvec().  This is safe, because the old code made
single copies and always flushed them back into the unit structures
before flushing those.

20 years ago(buil): Work directly on item arrays instead of copies made by
Markus Armbruster [Tue, 9 Mar 2004 14:52:21 +0000 (14:52 +0000)]
(buil): Work directly on item arrays instead of copies made by
getvec().  This is safe, because the old code made single copies and
always flushed them back into the unit structures before flushing
those.
(build_ship, build_land, build_bridge, build_nuke, build_plane,
build_tower): Change parameter type to match uncopied item arrays.

20 years agoNew option -f.
Markus Armbruster [Tue, 9 Mar 2004 14:38:59 +0000 (14:38 +0000)]
New option -f.

20 years agoUtility programs `land', `ore' and `perfect' haven't been built by
Markus Armbruster [Tue, 9 Mar 2004 14:22:57 +0000 (14:22 +0000)]
Utility programs `land', `ore' and `perfect' haven't been built by
default for ages (at least 4.2.0 '98).  Unsurprisingly, they don't
compile anymore.  Remove them.

20 years ago(lwpCreate): Avoid harmless compiler warning.
Markus Armbruster [Tue, 9 Mar 2004 13:28:16 +0000 (13:28 +0000)]
(lwpCreate): Avoid harmless compiler warning.

20 years agoThe fix in the previous rev. wasn't complete.
Markus Armbruster [Tue, 9 Mar 2004 13:20:39 +0000 (13:20 +0000)]
The fix in the previous rev. wasn't complete.

20 years ago(mobupdate): Fix argument of time().
Markus Armbruster [Tue, 9 Mar 2004 12:33:17 +0000 (12:33 +0000)]
(mobupdate): Fix argument of time().

20 years agoUse gcc function attribute `format' to catch bad format strings. Fix
Markus Armbruster [Tue, 9 Mar 2004 12:27:40 +0000 (12:27 +0000)]
Use gcc function attribute `format' to catch bad format strings.  Fix
them.  From Marc Olzheim.
Type modifier 'l' was missing in many places, probably rendering the
server useless on 64-bit hosts.
(ef_flush, ef_write, ef_extend, lwpCreate, lwpDestroy): Use conversion
specifier 'p' to print pointers.
(check_market): Fix display of loan amount.
(doland): Fix unescaped '%' (undefined behavior).
(ldump, ndump, pdump, sdump): Don't use flag '0' with conversion
specifier 's' (undefined behavior).
(dump, ldump, lost, ndump, pdump, sdump, empth_create, update_sched):
Cast time_t and pthread_t to long for printing.
(lwpStackCheck, lwpStackCheckUsed, finish_sects): Insert cast to fix
argument type on all platforms.
(prod): Remove extra argument.
(perform_mission, airdamage, retreat_land1, lwpReschedule): Format
string missed arguments.

20 years agoUse `short' instead of `unsigned short' for item storage in places
Markus Armbruster [Sat, 6 Mar 2004 07:16:45 +0000 (07:16 +0000)]
Use `short' instead of `unsigned short' for item storage in places
that were missed in the original changeset.

20 years agoFrom Ron Koenderink:
Markus Armbruster [Fri, 5 Mar 2004 19:58:07 +0000 (19:58 +0000)]
From Ron Koenderink:
(pr_land): Fix display of attack and defense value.
(dounit): New parameter farg.  Callers changed.  Use it to implement
attack and defense value editing.  Closes #872271.
(pr_ship): More space efficient display.
(pr_ship): Display defense value.
(doship): Implement defense value editing.

20 years ago(resupply_commod, s_commod, use_supply, has_supply): Work directly on
Markus Armbruster [Fri, 5 Mar 2004 19:36:24 +0000 (19:36 +0000)]
(resupply_commod, s_commod, use_supply, has_supply): Work directly on
item arrays instead of copies made by getvec().  This is safe, because
the old code made single copies and always flushed them back into the
unit structures before flushing those.

20 years ago(use_supply): Fix the trickery designed to avoid resupply from itself.
Markus Armbruster [Fri, 5 Mar 2004 19:28:05 +0000 (19:28 +0000)]
(use_supply): Fix the trickery designed to avoid resupply from itself.
Currently, use_supply() is only called for artillery, where the
trickery is not needed, so this fix isn't observable.  Not sure whether
it would be needed if use_supply() were called for supply units.

20 years ago(has_supply): Fix the trickery designed to avoid resupply from itself.
Markus Armbruster [Fri, 5 Mar 2004 18:31:22 +0000 (18:31 +0000)]
(has_supply): Fix the trickery designed to avoid resupply from itself.
Not sure the trickery is needed.  Also avoid `might be used
uninitialized' warning.

20 years ago(s_commod): When !ACTUALLY_DOIT, recursive land unit resupply didn't
Markus Armbruster [Fri, 5 Mar 2004 17:10:25 +0000 (17:10 +0000)]
(s_commod): When !ACTUALLY_DOIT, recursive land unit resupply didn't
work, because the effect of the resupply was immediately undone by an
untimely getvec().

20 years ago(s_commod): Don't zap supply unit fuel on recursive resupply. No idea
Markus Armbruster [Fri, 5 Mar 2004 16:36:55 +0000 (16:36 +0000)]
(s_commod): Don't zap supply unit fuel on recursive resupply.  No idea
why it was coded that way; it doesn't make sense.  No supply units
using fuel exist in the stock game.

20 years ago(s_commod): Clarify and comment the trickery required to make the
Markus Armbruster [Fri, 5 Mar 2004 16:30:30 +0000 (16:30 +0000)]
(s_commod): Clarify and comment the trickery required to make the
recursion work.  By the way, resuppling from supply units in unit id
order is a greedy algorithm, which is quite inappropriate for the
problem.

20 years ago(gen_power, addtopow): Call addtopow() directly on item arrays instead
Markus Armbruster [Fri, 5 Mar 2004 13:20:11 +0000 (13:20 +0000)]
(gen_power, addtopow): Call addtopow() directly on item arrays instead
of copies made by getvec().  This is obviously correct, since there
are no writes.

20 years ago(att_move_in_off): Don't put more than ITEM_MAX food into the
Markus Armbruster [Fri, 5 Mar 2004 13:14:28 +0000 (13:14 +0000)]
(att_move_in_off): Don't put more than ITEM_MAX food into the
assaulted sector.  Simplify some more.

20 years ago(att_move_in_off): The lunchbox code was unnecessary general,
Markus Armbruster [Fri, 5 Mar 2004 13:04:12 +0000 (13:04 +0000)]
(att_move_in_off): The lunchbox code was unnecessary general,
therefore had unreachable code.  Which was also buggy.  Simplify.

20 years agoReplace getvec() by direct, read-only item access in some cases where
Markus Armbruster [Fri, 5 Mar 2004 12:05:33 +0000 (12:05 +0000)]
Replace getvec() by direct, read-only item access in some cases where
that's obviously correct.

20 years ago[START_UNITS] (deity_build_land): Replace variable access in disabled
Markus Armbruster [Fri, 5 Mar 2004 11:55:13 +0000 (11:55 +0000)]
[START_UNITS] (deity_build_land): Replace variable access in disabled
code missed in the previous revision.

20 years agoReplace getvec() by direct, read-only item access in some cases where
Markus Armbruster [Fri, 5 Mar 2004 10:38:58 +0000 (10:38 +0000)]
Replace getvec() by direct, read-only item access in some cases where
that's obviously correct.

20 years ago(getilist, att_get_combat): Simplify. No functional changes.
Markus Armbruster [Fri, 5 Mar 2004 08:05:58 +0000 (08:05 +0000)]
(getilist, att_get_combat): Simplify.  No functional changes.

20 years ago(putvec): Saturate and log error on underflow/overflow, don't just
Markus Armbruster [Fri, 5 Mar 2004 07:59:29 +0000 (07:59 +0000)]
(putvec): Saturate and log error on underflow/overflow, don't just
truncate.

20 years ago(sctstr, shpstr, lndstr): Use `short' instead of `unsigned short' for
Markus Armbruster [Fri, 5 Mar 2004 07:56:50 +0000 (07:56 +0000)]
(sctstr, shpstr, lndstr): Use `short' instead of `unsigned short' for
item storage.  Rationale: Permitted values are 0..M, where M depends
on the container.  The largest M is ITEM_MAX (9999).  Benign
overflow/underflow occurs at those limits.  Catastrophic
overflow/underflow occurs at the limits of the underlying data type.
For `unsigned short', any underflow is catastrophic.  For `short',
benign undeflow happens long before catastrophic underflow.  Moreover,
unsigned arithmetic tends to trip up unwary programmers.

20 years ago(deli, do_demo, lnd_sweep, guerrilla): Saturate items at ITEM_MAX.
Markus Armbruster [Fri, 5 Mar 2004 06:48:57 +0000 (06:48 +0000)]
(deli, do_demo, lnd_sweep, guerrilla): Saturate items at ITEM_MAX.
With variables, item increases beyond the capacity of variables
(65535) were ignored here.

This should cover all item changes not going through putvec().

20 years ago(ITEM_MAX): New, value 9999.
Markus Armbruster [Fri, 5 Mar 2004 06:34:34 +0000 (06:34 +0000)]
(ITEM_MAX): New, value 9999.
(give, deliver_it): Use it instead of 9990.
(load_comm_ship, load_comm_land, rese): Use it instead of 9999.
(thre): Use it instead of 10000.
(check_market, explore, move, pln_dropoff): Use it instead of 32767.
(unload_it): Use it instead of 99999 (which couldn't possibly work,
but what do you expect from the autonav code).

20 years ago(load_comm_ship, load_comm_land): Partial rewrite for clarity. Fix
Markus Armbruster [Thu, 4 Mar 2004 20:05:01 +0000 (20:05 +0000)]
(load_comm_ship, load_comm_land): Partial rewrite for clarity.  Fix
`are we loading' tests.  Closes #752493 and #965504.

20 years ago(FALLOUT_MAX): New.
Markus Armbruster [Thu, 4 Mar 2004 16:19:50 +0000 (16:19 +0000)]
(FALLOUT_MAX): New.
(doland, detonate, spread_fallout): Use it.  With variables, fallout
beyond the capacity of variables (65535) was ignored, except in
doland(), where it saturated at 9999, and spread_fallout, where it
could overflow.  Now it always saturates at FALLOUT_MAX.

20 years ago(MINES_MAX): New.
Markus Armbruster [Thu, 4 Mar 2004 15:54:46 +0000 (15:54 +0000)]
(MINES_MAX): New.
(doland, mine, landmine, setsector, pln_dropoff): Use it.  With
variables, mining beyond the capacity of variables (65535) was
ignored.  Now the mines saturate at MINES_MAX.

20 years ago(pln_dropoff): Restructure for clarity and to avoid `might be used
Markus Armbruster [Thu, 4 Mar 2004 15:45:34 +0000 (15:45 +0000)]
(pln_dropoff): Restructure for clarity and to avoid `might be used
uninitialized' warning.

20 years ago(pln_dropoff): The previous revision screwed up output; fix.
Markus Armbruster [Thu, 4 Mar 2004 15:08:00 +0000 (15:08 +0000)]
(pln_dropoff): The previous revision screwed up output; fix.

20 years ago(sctstr): Member sct_che encoded number of che and their target.
Markus Armbruster [Thu, 4 Mar 2004 13:49:25 +0000 (13:49 +0000)]
(sctstr): Member sct_che encoded number of che and their target.
Simplify.  Split into member sct_che (number) and sct_che_target.
Users changed.
(get_che_cnum, set_che_cnum, get_che_value, get_che_value): Che
encoding/decoding functions; remove.
(CHE_MAX): Move from var.h to sect.h.
(prsect, doland): Print / edit the new field.

20 years agoSectors need space for items, deliveries and distribution thresholds.
Markus Armbruster [Wed, 3 Mar 2004 16:54:22 +0000 (16:54 +0000)]
Sectors need space for items, deliveries and distribution thresholds.
To save space, the ancients invented `variables': a collection of
key-value pairs, missing means zero value, space for `enough' keys.
This complicates the code, as assigning to a `variable' can fail for
lack of space.  Over time, `enough' increased, and for quite some time
now `variables' have been *wasting* space.  This changeset replaces
them, except in struct mchrstr, struct lchrstr and struct pchrstr,
where they are read-only, and will be replaced later.  It is only a
first step; further cleanup is required.  To simplify and minimize
this necessarily huge changeset, the new item[] arrays have an unused
slot 0, and the old variable types V_CIVIL, ... are still defined, but
must have the same values as the item types I_CIVIL, ...

20 years ago(plague_people): Log and repair bad plague stage.
Markus Armbruster [Wed, 3 Mar 2004 13:20:46 +0000 (13:20 +0000)]
(plague_people): Log and repair bad plague stage.

20 years ago(genobject, genchrstr): Unused, remove.
Markus Armbruster [Wed, 3 Mar 2004 10:23:07 +0000 (10:23 +0000)]
(genobject, genchrstr): Unused, remove.

20 years ago(fileinit): Invalid cast sct_init(); a call couldn't possibly work.
Markus Armbruster [Wed, 3 Mar 2004 10:17:53 +0000 (10:17 +0000)]
(fileinit): Invalid cast sct_init(); a call couldn't possibly work.
Luckily, it isn't called.  Remove.
(ef_fileinit): Unused, remove.

20 years ago(nameofitem, produce, check, fire_dchrg, send_reacting_units_home,
Markus Armbruster [Wed, 3 Mar 2004 09:39:50 +0000 (09:39 +0000)]
(nameofitem, produce, check, fire_dchrg, send_reacting_units_home,
do_map_set, upd_land, nav_check_atdest, produce, upd_ship): Remove
unused parameters.  Callers changed.

20 years ago(diss, player_coms): Command `dissolve' has been disabled at least
Markus Armbruster [Wed, 3 Mar 2004 08:20:45 +0000 (08:20 +0000)]
(diss, player_coms): Command `dissolve' has been disabled at least
since the days of Chainsaw (early '90s), and the code smells bad.
Bury it.

20 years ago(trade_desc): Ignore non-items when printing load. It used to print
Markus Armbruster [Tue, 2 Mar 2004 20:59:04 +0000 (20:59 +0000)]
(trade_desc): Ignore non-items when printing load.  It used to print
the plague as item, which indexed ichr[] out of bounds, which leads to
crash or bogus output.

20 years ago(genitem, ship, plane, land): Remove unused member sell & equivalents.
Markus Armbruster [Mon, 1 Mar 2004 17:21:40 +0000 (17:21 +0000)]
(genitem, ship, plane, land): Remove unused member sell & equivalents.
(genitem_ca, ship_ca, plane_ca, land_ca): Remove selector "sell".
(comstr, trdstr): Members trd_price, com_price have no effect.  Use
them instead of trd_maxprice, com_maxprice and remove the latter.
(commodity_ca, trade_ca): Remove selector "maxprice".

20 years ago(s_commod): Move initialization of `min' before first use.
Markus Armbruster [Mon, 1 Mar 2004 14:23:44 +0000 (14:23 +0000)]
(s_commod): Move initialization of `min' before first use.
(itemname): Unused, remove.

20 years ago(shp_missile_defense): Move big assignment out of if condition for
Markus Armbruster [Mon, 1 Mar 2004 14:21:11 +0000 (14:21 +0000)]
(shp_missile_defense): Move big assignment out of if condition for
clarity.

20 years ago(carriersatxy): Use `&&' instead of somewhat confusing `&'.
Markus Armbruster [Mon, 1 Mar 2004 14:18:37 +0000 (14:18 +0000)]
(carriersatxy): Use `&&' instead of somewhat confusing `&'.

20 years ago(player_new) [!RESOLVE_IPADDRESS]: Don't define unused local variable.
Markus Armbruster [Mon, 1 Mar 2004 14:17:58 +0000 (14:17 +0000)]
(player_new) [!RESOLVE_IPADDRESS]: Don't define unused local variable.

20 years ago(sctcache, bestp) [!DO_EFF_MEM_CHECKING]: cache isn't used, don't
Markus Armbruster [Mon, 1 Mar 2004 14:16:31 +0000 (14:16 +0000)]
(sctcache, bestp) [!DO_EFF_MEM_CHECKING]: cache isn't used, don't
define it.

20 years ago(draw_map): Fix test of player->command->c_flags. Broken code
Markus Armbruster [Mon, 1 Mar 2004 14:14:39 +0000 (14:14 +0000)]
(draw_map): Fix test of player->command->c_flags.  Broken code
happened to work because C_MOD is the only flag defined.

20 years agoRemove duplicate macro definitions.
Markus Armbruster [Mon, 1 Mar 2004 14:10:11 +0000 (14:10 +0000)]
Remove duplicate macro definitions.

20 years agoBreak excessively long line.
Markus Armbruster [Mon, 1 Mar 2004 14:07:10 +0000 (14:07 +0000)]
Break excessively long line.

20 years ago(deity_build_land) [!START_UNITS]: Unused, don't define.
Markus Armbruster [Mon, 1 Mar 2004 14:06:23 +0000 (14:06 +0000)]
(deity_build_land) [!START_UNITS]: Unused, don't define.

20 years agoClean up switch cases: proper fall through comments, no break after
Markus Armbruster [Mon, 1 Mar 2004 14:03:29 +0000 (14:03 +0000)]
Clean up switch cases: proper fall through comments, no break after
return.

20 years agoDon't cast void to void.
Markus Armbruster [Mon, 1 Mar 2004 13:56:07 +0000 (13:56 +0000)]
Don't cast void to void.

20 years agoRemove some unused junk.
Markus Armbruster [Mon, 1 Mar 2004 13:48:45 +0000 (13:48 +0000)]
Remove some unused junk.

20 years agoRemove RCS keyword comment, it's a nuisance.
Markus Armbruster [Mon, 1 Mar 2004 13:41:10 +0000 (13:41 +0000)]
Remove RCS keyword comment, it's a nuisance.

20 years ago(sccsid): Useless, as we don't use SCCS. Remove.
Markus Armbruster [Mon, 1 Mar 2004 13:33:51 +0000 (13:33 +0000)]
(sccsid): Useless, as we don't use SCCS.  Remove.

20 years ago(CHE_MAX): Don't define twice, define once in a header.
Markus Armbruster [Mon, 1 Mar 2004 13:32:06 +0000 (13:32 +0000)]
(CHE_MAX): Don't define twice, define once in a header.
(get_che_cnum, set_che_cnum, get_che_value, set_che_value): Remove
redundant definitions.

20 years ago(execute): Fix botched test for empty argument.
Markus Armbruster [Mon, 1 Mar 2004 13:26:39 +0000 (13:26 +0000)]
(execute): Fix botched test for empty argument.

20 years ago(mult, player_coms): Command `mult' is disabled since 4.0.0 ('96), and
Markus Armbruster [Mon, 1 Mar 2004 09:04:02 +0000 (09:04 +0000)]
(mult, player_coms): Command `mult' is disabled since 4.0.0 ('96), and
its code is obviously not in working order.  Remove.
(minmult, maxmult, configkeys): Unused configuration parameters,
remove.
(tradedesc): Remove code related to mult that had no effect.
(multread, commread, commwrite, commamt, commset, multset, commprice):
Dangerous, because code bypasses ef_read() & friends, remove.
(diss): Commodity cleanup uses the above, remove.  Command is disabled
and unlikely to work anyway.

20 years ago(interix, INTERIXCFLAGS, INTERIXLFLAGS, INTERIXMASTER): New, from Ron
Markus Armbruster [Mon, 1 Mar 2004 07:10:31 +0000 (07:10 +0000)]
(interix, INTERIXCFLAGS, INTERIXLFLAGS, INTERIXMASTER): New, from Ron
Koenderink.

20 years ago(safe_getcwd): New. When getcwd() is known to be able to allocate its
Markus Armbruster [Mon, 1 Mar 2004 07:07:27 +0000 (07:07 +0000)]
(safe_getcwd): New.  When getcwd() is known to be able to allocate its
buffer, just call that.  Else wrap suitable allocation around it.
(main): Use it.

20 years ago(ntinstall): Fix mkdir data.
Markus Armbruster [Mon, 1 Mar 2004 06:58:03 +0000 (06:58 +0000)]
(ntinstall): Fix mkdir data.

20 years agoFix missing include.
Markus Armbruster [Sun, 29 Feb 2004 11:41:26 +0000 (11:41 +0000)]
Fix missing include.

20 years agoinet_ntoa() is available on all machines that matter, and defining it
Markus Armbruster [Sun, 29 Feb 2004 11:41:08 +0000 (11:41 +0000)]
inet_ntoa() is available on all machines that matter, and defining it
ourselves without adequate auto-configuration creates more problems
than it solves.  In particular since we defined it with the wrong
type.

20 years ago(rea): Don't use L_SET, it's ancient BSD history, just use SEEK_SET.
Markus Armbruster [Sun, 29 Feb 2004 11:35:38 +0000 (11:35 +0000)]
(rea): Don't use L_SET, it's ancient BSD history, just use SEEK_SET.

20 years agoFix the previous rev.
Markus Armbruster [Sat, 28 Feb 2004 19:11:24 +0000 (19:11 +0000)]
Fix the previous rev.

20 years agoIndentation fixes; suspect indent-emp is to blame.
Markus Armbruster [Sat, 28 Feb 2004 18:06:11 +0000 (18:06 +0000)]
Indentation fixes; suspect indent-emp is to blame.

20 years agoMarkup changes: separate items more clearly. Don't use numeric fonts.
Markus Armbruster [Sat, 28 Feb 2004 17:50:55 +0000 (17:50 +0000)]
Markup changes: separate items more clearly.  Don't use numeric fonts.

20 years ago\" comments weren't recognized in column 0.
Markus Armbruster [Sat, 28 Feb 2004 17:32:30 +0000 (17:32 +0000)]
\" comments weren't recognized in column 0.

20 years ago(commodity_ca): "xloc", "yloc", "xsell", "ysel" and "price" weren't
Markus Armbruster [Sat, 28 Feb 2004 16:23:56 +0000 (16:23 +0000)]
(commodity_ca): "xloc", "yloc", "xsell", "ysel" and "price" weren't
NSC_DEITY.  Wrong, but commodity_ca[] is currently unused.  Also
rename "xloc", "yloc" to "xsell", "ysell".

20 years ago(trade_ca): "xloc" and "yloc" weren't NSC_DEITY. Wrong, but
Markus Armbruster [Sat, 28 Feb 2004 15:31:21 +0000 (15:31 +0000)]
(trade_ca): "xloc" and "yloc" weren't NSC_DEITY.  Wrong, but
trade_ca[] is currently unused.

20 years agoRemove some unused stuff, mostly Empire 3 leftovers.
Markus Armbruster [Sat, 28 Feb 2004 09:45:10 +0000 (09:45 +0000)]
Remove some unused stuff, mostly Empire 3 leftovers.

20 years ago(NSC_OPMASK, NSC_ISNUM1, NSC_ISNUM2, nscstr, nstr_comp, nstr_exec):
Markus Armbruster [Sat, 28 Feb 2004 08:49:39 +0000 (08:49 +0000)]
(NSC_OPMASK, NSC_ISNUM1, NSC_ISNUM2, nscstr, nstr_comp, nstr_exec):
Simplify encoding of struct ncstr member oper.

20 years ago(NSC_ROUND): No effect, remove.
Markus Armbruster [Sat, 28 Feb 2004 08:40:53 +0000 (08:40 +0000)]
(NSC_ROUND): No effect, remove.

20 years ago(sect_ca, genitem_ca, ship_ca, plane_ca, land_ca, nuke_ca, treaty_ca,
Markus Armbruster [Sat, 28 Feb 2004 08:29:21 +0000 (08:29 +0000)]
(sect_ca, genitem_ca, ship_ca, plane_ca, land_ca, nuke_ca, treaty_ca,
loan_ca, news_ca, lost_ca, commodity_ca, trade_ca, nat_ca, map_ca):
NSC_OFF was lost during Empire3, rendering the codes confusing and
harder to use.  Tack it back on.
(encode, code_char): No need to fool around with NSC_OFF anymore.

20 years agoDelete dead code. No functional changes. Should have been committed
Markus Armbruster [Sat, 28 Feb 2004 07:19:31 +0000 (07:19 +0000)]
Delete dead code.  No functional changes.  Should have been committed
yesterday's along with nsc.h rev. 1.7.

20 years agoThese files were split a long time ago, for technical reasons which
Markus Armbruster [Sat, 28 Feb 2004 06:40:48 +0000 (06:40 +0000)]
These files were split a long time ago, for technical reasons which
since vanished (linking into different programs).  Undo the split,
because the stuff really belongs together.

20 years ago(setsector): Fix misleading prompt.
Markus Armbruster [Fri, 27 Feb 2004 21:55:50 +0000 (21:55 +0000)]
(setsector): Fix misleading prompt.

20 years agoDelete dead code, fix indentation, spelling, obvious warning
Markus Armbruster [Fri, 27 Feb 2004 20:13:28 +0000 (20:13 +0000)]
Delete dead code, fix indentation, spelling, obvious warning
avoidance, doc fixes.  No functional changes.

20 years ago(sct_typematch): New. Use it instead of typematch() where
Markus Armbruster [Fri, 27 Feb 2004 19:53:02 +0000 (19:53 +0000)]
(sct_typematch): New.  Use it instead of typematch() where
appropriate.
(typematch): Prefer exact match to partial match.  Use plain char
instead of s_char.

20 years ago(stmtch, mineq): Document. Move declaration from prototypes.h to
Markus Armbruster [Fri, 27 Feb 2004 19:38:38 +0000 (19:38 +0000)]
(stmtch, mineq): Document.  Move declaration from prototypes.h to
match.h.  Use plain char instead of s_char.  The code has several
thousand type errors due to s_char vs plain char; s_char must go.
(stmtch): Rewrite for clarity.

20 years ago(html): Expand tabs in all.html; they can confuse browsers.
Markus Armbruster [Thu, 26 Feb 2004 09:26:29 +0000 (09:26 +0000)]
(html): Expand tabs in all.html; they can confuse browsers.

20 years agoDocument yesterday's changes that closed #803753.
Markus Armbruster [Thu, 26 Feb 2004 09:25:08 +0000 (09:25 +0000)]
Document yesterday's changes that closed #803753.
Don't re-explain the map in bmap commands.

20 years agoClose #803753:
Markus Armbruster [Wed, 25 Feb 2004 20:18:18 +0000 (20:18 +0000)]
Close #803753:
(map_char): New.
(draw_map): Use it.  Wilderness and plains owned by other players are
now displayed as '?'.
(radmap2): Display wilderness and plains as '?'.
(satmap): Call satdisp() for all sectors owned by other players.

20 years agoSpelling fix. Closes #901174.
Markus Armbruster [Tue, 24 Feb 2004 20:54:58 +0000 (20:54 +0000)]
Spelling fix.  Closes #901174.

20 years ago(GCCWARNFLAGS): New.
Markus Armbruster [Tue, 24 Feb 2004 20:35:19 +0000 (20:35 +0000)]
(GCCWARNFLAGS): New.
(OSXCFLAGS, FREEBSDCFLAGS, LINUXCFLAGS, LINUXPTHCFLAGS): Use it.

20 years ago(login_coms): Fix forward declaration (was a definition).
Markus Armbruster [Tue, 24 Feb 2004 18:35:26 +0000 (18:35 +0000)]
(login_coms): Fix forward declaration (was a definition).

20 years ago(fnlist): Move from misc.h to fnlist.h, where it belongs and has
Markus Armbruster [Tue, 24 Feb 2004 18:34:25 +0000 (18:34 +0000)]
(fnlist): Move from misc.h to fnlist.h, where it belongs and has
complete type.

20 years agoRemove junk at end of #endif.
Markus Armbruster [Tue, 24 Feb 2004 18:26:34 +0000 (18:26 +0000)]
Remove junk at end of #endif.