]> git.pond.sub.org Git - empserver/log
empserver
18 years agoSpelling fix.
Markus Armbruster [Tue, 11 Oct 2005 19:23:11 +0000 (19:23 +0000)]
Spelling fix.

18 years agoRemove some commented out code that is obviously useless.
Markus Armbruster [Tue, 11 Oct 2005 19:22:59 +0000 (19:22 +0000)]
Remove some commented out code that is obviously useless.

18 years agoFix bad line breaks.
Markus Armbruster [Tue, 11 Oct 2005 19:21:57 +0000 (19:21 +0000)]
Fix bad line breaks.

18 years agoUpdate for include/prototypes.h:1.90 src/lib/subs/attsub.c:1.28 src/lib/subs/shpsub...
Marc Olzheim [Tue, 4 Oct 2005 15:02:16 +0000 (15:02 +0000)]
Update for include/prototypes.h:1.90 src/lib/subs/attsub.c:1.28 src/lib/subs/shpsub.c:1.22 src/lib/update/human.c:1.16

18 years agoUpdate for 4.2.22.
Markus Armbruster [Tue, 4 Oct 2005 07:27:56 +0000 (07:27 +0000)]
Update for 4.2.22.

18 years ago(get_assembly_point): Close loophole that allowed players to find all
Markus Armbruster [Tue, 4 Oct 2005 07:20:37 +0000 (07:20 +0000)]
(get_assembly_point): Close loophole that allowed players to find all
unowned sectors.  The assembly point must now be owned or allied, or
have an owned or allied ship.

Info pages didn't match the old rule.  Fix them to match the new rule.

18 years ago(pin_bomb): Remove code to compute bestacc. It is not only wrong,
Markus Armbruster [Mon, 3 Oct 2005 20:03:45 +0000 (20:03 +0000)]
(pin_bomb): Remove code to compute bestacc.  It is not only wrong,
bestacc is not used.  Been that way since Chainsaw.

18 years ago(ac_landflak): Don't let embarked land units fire flak.
Markus Armbruster [Mon, 3 Oct 2005 15:46:42 +0000 (15:46 +0000)]
(ac_landflak): Don't let embarked land units fire flak.

18 years agoCheck against source and update accordingly.
Markus Armbruster [Mon, 3 Oct 2005 15:42:44 +0000 (15:42 +0000)]
Check against source and update accordingly.

18 years ago(spy): Catching a spy makes contact.
Markus Armbruster [Mon, 3 Oct 2005 15:36:39 +0000 (15:36 +0000)]
(spy): Catching a spy makes contact.

18 years ago(ac_encounter): Non-recon missions no longer make contact to owner of
Markus Armbruster [Mon, 3 Oct 2005 15:05:33 +0000 (15:05 +0000)]
(ac_encounter): Non-recon missions no longer make contact to owner of
sectors overflown, because only recon missions identify the owner.
This matches info Hidden.

18 years ago(notify_coastguard): Failed to make contact when NF_COASTWATCH was
Markus Armbruster [Mon, 3 Oct 2005 14:47:59 +0000 (14:47 +0000)]
(notify_coastguard): Failed to make contact when NF_COASTWATCH was
off.

18 years agoDocument.
Markus Armbruster [Mon, 3 Oct 2005 14:40:05 +0000 (14:40 +0000)]
Document.

18 years ago(satmap): Make contact iff displaying sectors. Shouldn't make a
Markus Armbruster [Mon, 3 Oct 2005 14:37:26 +0000 (14:37 +0000)]
(satmap): Make contact iff displaying sectors.  Shouldn't make a
difference, but is clearer.

(satmap): Spotting land units makes contact.

18 years ago(ac_dog): Make contact both ways. This is more for completeness, as
Markus Armbruster [Mon, 3 Oct 2005 14:34:26 +0000 (14:34 +0000)]
(ac_dog): Make contact both ways.  This is more for completeness, as
contact should have been made before planes rise to fight.

18 years ago(notify_coastguard): Use FOUND_COAST, not FOUND_LOOK.
Markus Armbruster [Mon, 3 Oct 2005 14:32:02 +0000 (14:32 +0000)]
(notify_coastguard): Use FOUND_COAST, not FOUND_LOOK.

18 years ago(add): Initialize nat_last_login and nat_last_logout to zero rather
Markus Armbruster [Mon, 3 Oct 2005 13:25:54 +0000 (13:25 +0000)]
(add): Initialize nat_last_login and nat_last_logout to zero rather
than current time.  Nation addition time is irrelevant.
(natstr): Document zero nat_last_login, nat_last_login mean never
logged in/out.
(player_main): Test nat_last_login zero instead of nat_hostaddr empty.

(player_main): Assign nat_userid, nat_hostname, nat_hostaddr straight
from player.  The last connection's host is now shown as dotted quads
instead of nowhere when the name isn't known.
(natstr): Document that nat_userid, nat_hostname may be empty.

(player_main): Simplify printing last connection address: nat_hostaddr
can't be empty here; don't bother to substitute "nobody" for empty
user.

18 years ago(match_user, main): Use full buffer for fgets(); was off by one.
Markus Armbruster [Mon, 3 Oct 2005 10:45:00 +0000 (10:45 +0000)]
(match_user, main): Use full buffer for fgets(); was off by one.

18 years ago(main): Delete some code that had no effect.
Markus Armbruster [Mon, 3 Oct 2005 10:42:10 +0000 (10:42 +0000)]
(main): Delete some code that had no effect.

18 years ago(retreat_ship1, retreat_land1): Delete some code that had no effect.
Markus Armbruster [Mon, 3 Oct 2005 10:41:13 +0000 (10:41 +0000)]
(retreat_ship1, retreat_land1): Delete some code that had no effect.

18 years ago(chan): Do not arbitrarily truncate representative to 8 characters,
Markus Armbruster [Mon, 3 Oct 2005 10:40:11 +0000 (10:40 +0000)]
(chan): Do not arbitrarily truncate representative to 8 characters,
use the full size of struct natstr member nat_pnam.

18 years ago(add): Use size of struct natstr members nat_cnam and nat_pnam instead
Markus Armbruster [Mon, 3 Oct 2005 10:38:55 +0000 (10:38 +0000)]
(add): Use size of struct natstr members nat_cnam and nat_pnam instead
of literals.

18 years ago(lndstr, natstr, shpstr): Fix string types from s_char[] to char[].
Markus Armbruster [Mon, 3 Oct 2005 10:35:44 +0000 (10:35 +0000)]
(lndstr, natstr, shpstr): Fix string types from s_char[] to char[].
They were declared NSC_STRINGY in their selector descriptors, and
NSC_STRINGY is specified to represent char[].
(player): Get rid of s_char.

18 years ago(babies): Factored out of grow_people(). Identical, except it doesn't
Markus Armbruster [Sun, 2 Oct 2005 19:10:16 +0000 (19:10 +0000)]
(babies): Factored out of grow_people().  Identical, except it doesn't
bother to `optimize' the maxpop case, and it drops the weird food
limit computation for opt_NOFOOD, which didn't limited for any
reasonable game parameters.

18 years ago(ac_encounter): Make contact on spotting planes. Closes #857594.
Markus Armbruster [Sun, 2 Oct 2005 18:41:29 +0000 (18:41 +0000)]
(ac_encounter): Make contact on spotting planes.  Closes #857594.

18 years ago(look_ship, look_land): Failed to make contact on sighting ships,
Markus Armbruster [Sun, 2 Oct 2005 18:09:42 +0000 (18:09 +0000)]
(look_ship, look_land): Failed to make contact on sighting ships,
planes and land units.  Partial fix for #857594.

18 years ago(natstr): Member nat_connected is inappropriate, because it is
Markus Armbruster [Sun, 2 Oct 2005 17:01:15 +0000 (17:01 +0000)]
(natstr): Member nat_connected is inappropriate, because it is
transient server state, not persistent game state.  Remove.
(player_main, edit): Remove uses.
(coun): Use getplayer() instead of nat_connected.  Delete the message
on command being out of order.

18 years ago(player_find_other): Replace by getplayer. player_find_other()
Markus Armbruster [Sun, 2 Oct 2005 16:30:43 +0000 (16:30 +0000)]
(player_find_other): Replace by getplayer.  player_find_other()
searches for a player other than US for country CNUM, which is in
state PS_PLAYING.  Since there can be at most one player in state
PS_PLAYING, and no caller pass that player as US, they can simply use
getplayer() instead.

18 years ago(getplayer): There may be multiple players for the same country in the
Markus Armbruster [Sun, 2 Oct 2005 16:21:41 +0000 (16:21 +0000)]
(getplayer): There may be multiple players for the same country in the
list of players, but at most one in state PS_PLAYING.  getplayer()
used to get the one first in the list.  However, its callers need the
one in state PS_PLAYING.  In particular, typed_wu() notifies the
player obtained from getplayer().  If the player in state PS_PLAYING
isn't first, say because another one is trying to log in, the
notification gets lost.  Fix by making getplayer() return the player
in state PS_PLAYING.

18 years ago(SNEAK_ATTACK, opt_SNEAK_ATTACK, Options, do_sneak, att_abort)
Markus Armbruster [Sun, 2 Oct 2005 14:35:18 +0000 (14:35 +0000)]
(SNEAK_ATTACK, opt_SNEAK_ATTACK, Options, do_sneak, att_abort)
(att_fight): Remove option SNEAK_ATTACK.

18 years ago(setrel): Relation change establishes contact like a telegram.
Markus Armbruster [Sun, 2 Oct 2005 11:04:31 +0000 (11:04 +0000)]
(setrel): Relation change establishes contact like a telegram.
Partial fix for #857594.

18 years agoRemove some redundant parenthesis; no functional change.
Markus Armbruster [Sun, 2 Oct 2005 10:16:19 +0000 (10:16 +0000)]
Remove some redundant parenthesis; no functional change.

18 years ago(prod_land, prod_ship): Simplify.
Markus Armbruster [Sun, 2 Oct 2005 10:15:59 +0000 (10:15 +0000)]
(prod_land, prod_ship): Simplify.

18 years ago(do_feed): Simplify.
Markus Armbruster [Sat, 1 Oct 2005 18:44:25 +0000 (18:44 +0000)]
(do_feed): Simplify.
(starvation): Pointless.  Inline into do_feed() and remove.

(growfood): Doc clarification.

18 years ago(att_get_combat): Fix test whether land unit exists. Closes #1034283.
Markus Armbruster [Sat, 1 Oct 2005 16:39:41 +0000 (16:39 +0000)]
(att_get_combat): Fix test whether land unit exists.  Closes #1034283.

(att_fight): Fix bad line break.

18 years ago(get_assembly_point): New.
Markus Armbruster [Sat, 1 Oct 2005 14:07:35 +0000 (14:07 +0000)]
(get_assembly_point): New.
(bomb, drop, fly, para, reco): Use it.

18 years agoDon't point to ftp.wolfpackempire.com, it does not work.
Markus Armbruster [Sat, 1 Oct 2005 12:52:00 +0000 (12:52 +0000)]
Don't point to ftp.wolfpackempire.com, it does not work.

18 years ago(plist): Member state is used write-only, remove.
Markus Armbruster [Fri, 30 Sep 2005 20:44:43 +0000 (20:44 +0000)]
(plist): Member state is used write-only, remove.
(P_OK, P_FIRED, P_DEL): Unused, remove.

18 years ago(N_FLAK, N_DISS_GOV, N_DECL_NEUT, N_RIOT, N_ASSAULT_LOSE): Unused,
Markus Armbruster [Fri, 30 Sep 2005 20:38:22 +0000 (20:38 +0000)]
(N_FLAK, N_DISS_GOV, N_DECL_NEUT, N_RIOT, N_ASSAULT_LOSE): Unused,
remove.
(no_news): new.
(rpt): Use it for r_newsstory of unused slots.

18 years ago(empfile): Member itemoffs is unused since file.c rev. 1.15; remove.
Markus Armbruster [Fri, 30 Sep 2005 20:02:57 +0000 (20:02 +0000)]
(empfile): Member itemoffs is unused since file.c rev. 1.15; remove.

18 years ago(IO_CONN, io_conn, IOQ_BUFSIZE, MAXIOV, LND_NOTANY, plur)
Markus Armbruster [Fri, 30 Sep 2005 19:51:32 +0000 (19:51 +0000)]
(IO_CONN, io_conn, IOQ_BUFSIZE, MAXIOV, LND_NOTANY, plur)
(techfactfire, reltech, P_DISTING, PLN_MAXDEF, filetruncate, sct_init)
(nxtsctp, AN_SAILDIR, UDTIMES_MAX, BLITZTIME): Unused, remove.

18 years agoUnused.
Markus Armbruster [Fri, 30 Sep 2005 19:50:57 +0000 (19:50 +0000)]
Unused.

18 years agoRemove leftover declarations that should have been removed along with
Markus Armbruster [Fri, 30 Sep 2005 19:40:41 +0000 (19:40 +0000)]
Remove leftover declarations that should have been removed along with
the definitions.

18 years ago(PP_MAIN): New.
Markus Armbruster [Fri, 30 Sep 2005 17:37:04 +0000 (17:37 +0000)]
(PP_MAIN): New.
(empth_init): Use it rather than literal.

18 years ago(getpath): Fix buffer overflow. Remote hole in commands bomb, drop,
Markus Armbruster [Sun, 25 Sep 2005 18:55:55 +0000 (18:55 +0000)]
(getpath): Fix buffer overflow.  Remote hole in commands bomb, drop,
fly, para, reco, sail, sweep.  Old code also screwed up when
getstring() failed, unless player->aborted.  Fixed code is still ugly
and cries for a rewrite.

18 years ago(getpath): Fix message when no path to destination sector can be
Markus Armbruster [Sun, 25 Sep 2005 17:03:53 +0000 (17:03 +0000)]
(getpath): Fix message when no path to destination sector can be
found.

18 years ago(getpath): Parameter showxy makes no sense and is not used. Remove.
Markus Armbruster [Sun, 25 Sep 2005 17:00:50 +0000 (17:00 +0000)]
(getpath): Parameter showxy makes no sense and is not used.  Remove.
Get rid of s_char.  Callers changed.

18 years ago(fly): Check for player aborting the command at the `transport what?'
Markus Armbruster [Sun, 25 Sep 2005 16:39:44 +0000 (16:39 +0000)]
(fly): Check for player aborting the command at the `transport what?'
prompt.  Closes #771801.

18 years ago(pathcost): Fix the previous rev.
Markus Armbruster [Sun, 25 Sep 2005 16:03:22 +0000 (16:03 +0000)]
(pathcost): Fix the previous rev.

18 years ago(deli): Diagnose invalid direction.
Markus Armbruster [Sun, 25 Sep 2005 10:05:39 +0000 (10:05 +0000)]
(deli): Diagnose invalid direction.

18 years ago(retreat_ship1, retreat_land1): Used to accept DIR_VIEW, which
Markus Armbruster [Sun, 25 Sep 2005 10:05:09 +0000 (10:05 +0000)]
(retreat_ship1, retreat_land1): Used to accept DIR_VIEW, which
happened do do nothing.  Ignoring it like other invalid directions is
clearer.

18 years ago(marc, navi, retreat_ship1, retreat_land1): Treat any negative value
Markus Armbruster [Sun, 25 Sep 2005 10:00:43 +0000 (10:00 +0000)]
(marc, navi, retreat_ship1, retreat_land1): Treat any negative value
of chkdir() as failure, not just -1.

18 years ago(diridx): New. Use instead of chkdir() where direction characters
Markus Armbruster [Sun, 25 Sep 2005 09:49:36 +0000 (09:49 +0000)]
(diridx): New.  Use instead of chkdir() where direction characters
must be valid.  Oopses on bad direction characters.
(pathtoxy, ac_encounter): Bad direction characters used to lead to bad
array subscript and potential disaster.
(pathrange, path): Stop on DIR_STOP as well as on bad direction
characters.  This is just for consistency with other code; DIR_STOP
should occur only last in a path here.
(sail_nav_fleet, nav_ship): No change except for the oops.

18 years ago(dirindex): Narrow member type to signed char to save cache.
Markus Armbruster [Sun, 25 Sep 2005 09:15:27 +0000 (09:15 +0000)]
(dirindex): Narrow member type to signed char to save cache.
(pathcost): Catch bad direction characters (should not happen).

18 years ago(SELL_NOT_DELIV, getdir, chkpath): Unused, remove.
Markus Armbruster [Sun, 25 Sep 2005 09:07:31 +0000 (09:07 +0000)]
(SELL_NOT_DELIV, getdir, chkpath): Unused, remove.

18 years ago(doexecute) [_WIN32]: Open the exec file in text mode.
Ron Koenderink [Sat, 24 Sep 2005 13:34:39 +0000 (13:34 +0000)]
(doexecute) [_WIN32]: Open the exec file in text mode.
The exec file contains the user commands created by text editor.

18 years ago(listen_addr): New econfig key.
Markus Armbruster [Fri, 23 Sep 2005 18:41:24 +0000 (18:41 +0000)]
(listen_addr): New econfig key.
(player_init): Implement it.

(player_init): Support service name in econfig key loginport.  Service
empire no longer takes precedence over econfig.  Closes #797096.

18 years ago(hostaddr, hostconnect): Leave printing messages to caller.
Markus Armbruster [Fri, 23 Sep 2005 17:55:24 +0000 (17:55 +0000)]
(hostaddr, hostconnect): Leave printing messages to caller.
(main): Clarify messages.

(hostport) [_WIN32]: Remove useless conditional code.

(main): Fall back to compiled-in host only if environment doesn't
supply one, not if it can't be resolved.  Same for port.

18 years ago(deli): Break the loop if player->aborted. Without that, it can
Markus Armbruster [Fri, 23 Sep 2005 17:37:28 +0000 (17:37 +0000)]
(deli): Break the loop if player->aborted.  Without that, it can
prompt for more input, violating the client protocol.

18 years ago(prmptrd, uprmptrd): Should not be called while player->aborted. Check.
Markus Armbruster [Fri, 23 Sep 2005 17:35:14 +0000 (17:35 +0000)]
(prmptrd, uprmptrd): Should not be called while player->aborted.  Check.

18 years agoChange info pages to reflect the code change that sets the build reaction
Ron Koenderink [Tue, 20 Sep 2005 00:00:23 +0000 (00:00 +0000)]
Change info pages to reflect the code change that sets the build reaction
radius to zero for land-units.

18 years ago(upd_ship): Limit oil production to what's actually in the ground.
Markus Armbruster [Sun, 18 Sep 2005 12:17:18 +0000 (12:17 +0000)]
(upd_ship): Limit oil production to what's actually in the ground.

18 years ago(io_output): Remove a redundant check.
Markus Armbruster [Tue, 30 Aug 2005 18:27:49 +0000 (18:27 +0000)]
(io_output): Remove a redundant check.

18 years ago(move): test command checked start sector for space and some other
Markus Armbruster [Tue, 30 Aug 2005 18:26:58 +0000 (18:26 +0000)]
(move): test command checked start sector for space and some other
things instead of end sector.

(move): test command now skips code dealing with return of goods to
start sector.

(want_to_abandon): Simplify.

18 years ago(do_conv): Use maximum population instead of 999 to limit number of
Markus Armbruster [Tue, 30 Aug 2005 17:49:43 +0000 (17:49 +0000)]
(do_conv): Use maximum population instead of 999 to limit number of
new uw.

18 years ago(shoo): Remove the arbitrary limit of 999 people to be shot.
Markus Armbruster [Tue, 30 Aug 2005 17:47:40 +0000 (17:47 +0000)]
(shoo): Remove the arbitrary limit of 999 people to be shot.

18 years ago(ltend): Fix printing of land unit in diagnostic message.
Markus Armbruster [Tue, 30 Aug 2005 17:38:27 +0000 (17:38 +0000)]
(ltend): Fix printing of land unit in diagnostic message.

18 years ago(nbomb): Rev. 1.17 made a questionable initializer incorrect, and thus
Markus Armbruster [Tue, 30 Aug 2005 17:27:37 +0000 (17:27 +0000)]
(nbomb): Rev. 1.17 made a questionable initializer incorrect, and thus
broke pin-bombing for hosts where sizeof(i_type) != sizeof(int).  Fix.

18 years ago(nstr_resolve_id): Fix spelling mistake.
Ron Koenderink [Thu, 25 Aug 2005 00:34:55 +0000 (00:34 +0000)]
(nstr_resolve_id): Fix spelling mistake.
unkown -> unknown

18 years agoChange 0 to NULL for pointer initializations. No functional changes.
Marc Olzheim [Mon, 22 Aug 2005 18:52:43 +0000 (18:52 +0000)]
Change 0 to NULL for pointer initializations.  No functional changes.

18 years ago(io_output_all,update_main,update_wait): Do not block on writing when
Ron Koenderink [Sun, 21 Aug 2005 17:17:38 +0000 (17:17 +0000)]
(io_output_all,update_main,update_wait): Do not block on writing when
aborting commands for an update.  Move update_pending to the start of
the update sequence where the commands are aborted.

18 years ago(force): Change to create update thread instead of calling
Ron Koenderink [Sat, 20 Aug 2005 19:16:56 +0000 (19:16 +0000)]
(force): Change to create update thread instead of calling
empth_sleep() as the empth_sleep() can not be aborted for an update.
(update_force): New.

18 years ago[_WIN32]: Use pconfig.obj instead of pconfig.o for ntpconfig:
Ron Koenderink [Sat, 13 Aug 2005 20:18:37 +0000 (20:18 +0000)]
[_WIN32]: Use pconfig.obj instead of pconfig.o for ntpconfig:

18 years agoUpdate for src/lib/subs/attsub.c:1.28 and src/lib/update/revolt.c:1.16
Marc Olzheim [Thu, 11 Aug 2005 09:29:10 +0000 (09:29 +0000)]
Update for src/lib/subs/attsub.c:1.28 and src/lib/update/revolt.c:1.16

18 years agoUpdate for src/lib/subs/pr.c:1.27
Marc Olzheim [Thu, 11 Aug 2005 09:28:20 +0000 (09:28 +0000)]
Update for src/lib/subs/pr.c:1.27

18 years ago(empth_yield): Remove sleep(). Delay not necessary.
Ron Koenderink [Mon, 1 Aug 2005 03:08:16 +0000 (03:08 +0000)]
(empth_yield): Remove sleep().  Delay not necessary.

18 years agoUpdate to current output format.
Markus Armbruster [Sun, 31 Jul 2005 17:45:06 +0000 (17:45 +0000)]
Update to current output format.

18 years ago(show_opts): New, factored out of vers(). Fix output punctuation.
Markus Armbruster [Sun, 31 Jul 2005 17:42:14 +0000 (17:42 +0000)]
(show_opts): New, factored out of vers().  Fix output punctuation.
(vers): Fix output punctuation and grammar.

18 years ago(wrgamesdef): Don't point to ftp.wolfpackempire.com, it does not work.
Markus Armbruster [Sun, 31 Jul 2005 17:40:06 +0000 (17:40 +0000)]
(wrgamesdef): Don't point to ftp.wolfpackempire.com, it does not work.

18 years ago(SHIPNAMES, opt_SHIPNAMES, Options, carg, name, sorde, qorde)
Markus Armbruster [Sun, 31 Jul 2005 17:22:32 +0000 (17:22 +0000)]
(SHIPNAMES, opt_SHIPNAMES, Options, carg, name, sorde, qorde)
(show_sail, shi, att_get_combat, pr_com, satdisp, satmap, prship):
Remove nooption SHIPNAMES.

18 years ago(sorde): Output messed up for ships with sail path. Fix and
Markus Armbruster [Sun, 31 Jul 2005 16:35:30 +0000 (16:35 +0000)]
(sorde): Output messed up for ships with sail path.  Fix and
simplify.  Remove inappropriate ship sanity check, should be done
elsewhere, and differently.

(qorde): Fix the previous rev.

18 years ago(qorde): Output messed up for ships with sail path. Fix and
Markus Armbruster [Sun, 31 Jul 2005 16:19:03 +0000 (16:19 +0000)]
(qorde): Output messed up for ships with sail path.  Fix and
simplify.  Remove inappropriate ship sanity check, should be done
elsewhere, and differently.

18 years ago(checksect, give_back_cap, guerrilla): No longer change capital to
Markus Armbruster [Sun, 31 Jul 2005 13:55:50 +0000 (13:55 +0000)]
(checksect, give_back_cap, guerrilla): No longer change capital to
agribusiness.  That was done when the occupier abandons the old-owners
capital or it revolts, to prevent players from sacking the same
capital many timers.  The server has a much better way to prevent that
since 4.2.7, so this weird hack is no longer useful.  Thanks to Pat
Loney for pointing this out.

18 years ago(meltitems): Remove unnecessary checks.
Ron Koenderink [Mon, 25 Jul 2005 13:12:22 +0000 (13:12 +0000)]
(meltitems): Remove unnecessary checks.

18 years ago(meltitems): Move melt_item_denom into the ichr structure.
Ron Koenderink [Sun, 24 Jul 2005 22:20:05 +0000 (22:20 +0000)]
(meltitems): Move melt_item_denom into the ichr structure.

18 years ago(prmptrd,uprmptrd): Remove unused variable cp.
Ron Koenderink [Sun, 24 Jul 2005 17:26:21 +0000 (17:26 +0000)]
(prmptrd,uprmptrd): Remove unused variable cp.

18 years ago(getcommand): Remove unused variable i
Ron Koenderink [Sun, 24 Jul 2005 17:24:21 +0000 (17:24 +0000)]
(getcommand): Remove unused variable i

18 years ago(lwpReschedule): Internal function, move declaration from lwp.h to
Markus Armbruster [Sun, 24 Jul 2005 10:00:52 +0000 (10:00 +0000)]
(lwpReschedule): Internal function, move declaration from lwp.h to
lwpint.h.

18 years ago(empth_yield) [_EMPTH_LWP]: Blocked the current thread forever; fix.
Markus Armbruster [Sun, 24 Jul 2005 09:57:39 +0000 (09:57 +0000)]
(empth_yield) [_EMPTH_LWP]: Blocked the current thread forever; fix.

18 years ago(prompt,dopipe) [_WIN32]: Enable the pipe capability.
Ron Koenderink [Sat, 23 Jul 2005 21:44:00 +0000 (21:44 +0000)]
(prompt,dopipe) [_WIN32]: Enable the pipe capability.

18 years agoRemove some redundant parenthesis; no functional change.
Markus Armbruster [Sat, 23 Jul 2005 19:48:35 +0000 (19:48 +0000)]
Remove some redundant parenthesis; no functional change.

18 years ago(player_init) [LISTENMAXCONN]: Comment seems to claim Linux doesn't
Markus Armbruster [Sat, 23 Jul 2005 19:12:23 +0000 (19:12 +0000)]
(player_init) [LISTENMAXCONN]: Comment seems to claim Linux doesn't
have SOMAXCONN, but has LISTENMAXCONN.  In fact, it has SOMAXCONN, and
LISTENMAXCONN doesn't exist anywhere in /usr/include or the Internet.
Remove the special case.

18 years ago(rpt): Restore tabular formatting destroyed by emp-indent.
Markus Armbruster [Sat, 23 Jul 2005 19:09:12 +0000 (19:09 +0000)]
(rpt): Restore tabular formatting destroyed by emp-indent.

18 years agoDelete some code that has been disabled out for ages and looks
Markus Armbruster [Sat, 23 Jul 2005 18:35:07 +0000 (18:35 +0000)]
Delete some code that has been disabled out for ages and looks
useless or wrong.

18 years ago(empth_create): Adjust stack size to at least PTHREAD_STACK_MIN, not
Markus Armbruster [Sat, 23 Jul 2005 17:50:31 +0000 (17:50 +0000)]
(empth_create): Adjust stack size to at least PTHREAD_STACK_MIN, not
PTHREAD_STACK_MIN + 1.

18 years agoCleanup, no functional change.
Markus Armbruster [Sat, 23 Jul 2005 17:40:49 +0000 (17:40 +0000)]
Cleanup, no functional change.

(empth_t, empth_sem_t): Define as incomplete types in empthread.h,
complete in pthread.c, to avoid exposing implementation details.

(EMPTH_KILLED): Move from empthread.h to pthread.c.

18 years ago[_DECTHREADS_] Drop support for DECthreads d4, a.k.a. DCE threads,
Markus Armbruster [Sat, 23 Jul 2005 17:26:20 +0000 (17:26 +0000)]
[_DECTHREADS_] Drop support for DECthreads d4, a.k.a. DCE threads,
which are obsolete since at least 1997.

(empth_terminate, empth_wakeup) [__ppc__]: Ancient versions of OS X
lacked pthread_kill().  As a work-around, its use was disabled here
for all versions of OS X.  The work-around could lead to hangs.
Remove it and drop support for ancient versions of OS X.

(empth_create) [__linux__]: Linux has supported thread attribute
stacksize for ages.  Remove the special case.

(_MIT_POSIX_THREADS): Unused, remove.

18 years ago(empth_setctx): Unused, remove.
Markus Armbruster [Sat, 23 Jul 2005 16:55:31 +0000 (16:55 +0000)]
(empth_setctx): Unused, remove.

18 years ago(trade_desc, get_materials): Use i_type variable instead of int for
Markus Armbruster [Sat, 23 Jul 2005 16:53:06 +0000 (16:53 +0000)]
(trade_desc, get_materials): Use i_type variable instead of int for
iterating over item types.

18 years ago(sell): Prompting for `amount' is confusing: is it the amount of goods
Markus Armbruster [Sat, 23 Jul 2005 16:50:43 +0000 (16:50 +0000)]
(sell): Prompting for `amount' is confusing: is it the amount of goods
to offer or amount of money to ask for?.  Ask for `quantity' instead.