]> git.pond.sub.org Git - empserver/log
empserver
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.

18 years ago(bdes): Prompt was messed up when bmap contained designation 0.
Markus Armbruster [Sat, 23 Jul 2005 16:47:08 +0000 (16:47 +0000)]
(bdes): Prompt was messed up when bmap contained designation 0.

18 years ago(status): Internal linkage.
Markus Armbruster [Sat, 23 Jul 2005 16:41:18 +0000 (16:41 +0000)]
(status): Internal linkage.

18 years agoFix lrangeedit to lrange. Fix rangeedit to range. Fix attack to Attacking.
Ron Koenderink [Sat, 23 Jul 2005 13:58:11 +0000 (13:58 +0000)]
Fix lrangeedit to lrange.  Fix rangeedit to range.  Fix attack to Attacking.
Add html links for info references.  Remove inconsistent periods.
Add missing closing brackets. Change info to information to improve
readability.  Improve the readability for range/lrange sentence.

18 years ago(stre): Fix to make it match what happens in attack sequence: land
Ron Koenderink [Sat, 23 Jul 2005 13:44:47 +0000 (13:44 +0000)]
(stre): Fix to make it match what happens in attack sequence: land
units do not react to a mountain.

(stre): Add an empth_yield() per sector to make the server responsive
to other players as this command is CPU intensive.

18 years ago(player_init) [_WIN32,__linux__ && __alpha__]: Remove the
Ron Koenderink [Sat, 23 Jul 2005 13:43:35 +0000 (13:43 +0000)]
(player_init) [_WIN32,__linux__ && __alpha__]: Remove the
SO_REUSEADDR socket option as it is not required for WIN32.
In WIN32, there is no waiting time when a port is closed before
it can be reused so SO_REUSEADDR is not required for WIN32.
Leave the option has a undesirable effect of allowing a second
server instance to start without an error and leaving both
instances running.  ALPHA and LINUX do support SO_REUSEADDR.

18 years ago(player_main): Add empth_yield() in the command processing loop to ensure
Ron Koenderink [Sat, 23 Jul 2005 13:37:36 +0000 (13:37 +0000)]
(player_main): Add empth_yield() in the command processing loop to ensure
after every command, other players gets a chance to execute a command.
This prevents denial of service attack that monopolizing the active server
thread by continuing feeding data to the server from a client.

18 years ago(launch_sat): Incorrectly assumed that plane_mob_max is 127 when
Ron Koenderink [Mon, 18 Jul 2005 23:52:30 +0000 (23:52 +0000)]
(launch_sat): Incorrectly assumed that plane_mob_max is 127 when
calculating when the satellite will be ready for use.

18 years agoFinal batch of 4.2.21 changes. v4.2.21
Markus Armbruster [Sat, 16 Jul 2005 18:00:05 +0000 (18:00 +0000)]
Final batch of 4.2.21 changes.

18 years agoOnly of historical interest.
Markus Armbruster [Wed, 13 Jul 2005 18:02:46 +0000 (18:02 +0000)]
Only of historical interest.

18 years agoDocument new files.
Markus Armbruster [Wed, 13 Jul 2005 18:01:02 +0000 (18:01 +0000)]
Document new files.

18 years ago(melt_item_denom): i_type shift (include/item.h 1.12) broke
Markus Armbruster [Wed, 13 Jul 2005 17:33:39 +0000 (17:33 +0000)]
(melt_item_denom): i_type shift (include/item.h 1.12) broke
initializer, screwing up fallout damage.

18 years agoStill more 4.2.21 changes.
Markus Armbruster [Sat, 9 Jul 2005 14:06:13 +0000 (14:06 +0000)]
Still more 4.2.21 changes.

18 years ago(pln_equip): Fix the previous rev.
Markus Armbruster [Sat, 9 Jul 2005 13:59:01 +0000 (13:59 +0000)]
(pln_equip): Fix the previous rev.

18 years ago(mission_pln_equip, pln_equip): Fix the previous rev.
Markus Armbruster [Sat, 9 Jul 2005 13:32:54 +0000 (13:32 +0000)]
(mission_pln_equip, pln_equip): Fix the previous rev.

18 years agoDoc fix.
Markus Armbruster [Sat, 9 Jul 2005 11:09:34 +0000 (11:09 +0000)]
Doc fix.

18 years ago(show_sect_capab, mission_pln_equip, pln_equip): Change i_type
Ron Koenderink [Thu, 7 Jul 2005 21:57:15 +0000 (21:57 +0000)]
(show_sect_capab, mission_pln_equip, pln_equip): Change i_type
references to use I_NONE instead of zero.  Zero has been invalid since
item.h rev. 1.12, and was questionable style before.

18 years agoUpdate for src/lib/subs/pr.c:1.25
Marc Olzheim [Wed, 6 Jul 2005 09:14:20 +0000 (09:14 +0000)]
Update for src/lib/subs/pr.c:1.25

18 years agoStill more 4.2.21 changes.
Markus Armbruster [Tue, 5 Jul 2005 16:14:09 +0000 (16:14 +0000)]
Still more 4.2.21 changes.

18 years ago(pr_player, upr_player): Blocking I/O on another player's struct iop *
Ron Koenderink [Mon, 4 Jul 2005 14:07:31 +0000 (14:07 +0000)]
(pr_player, upr_player): Blocking I/O on another player's struct iop *
is unsafe!  By the time the blocked thread wakes up, that player may
be gone, along with its struct iop *, and io_write() follows a
dangling pointer.  Moreover, at most one thread may use empth_select()
on the same file descriptor.  Violations of that restriction cause
threads to hang under Windows since ntthread.c rev. 1.15.  Make all
output to another player non-blocking for now.  Historically, player
threads sent output only to their socket, though their own iop.  This
was broken by flash and asynchronous telegram notification a long time
ago.

18 years ago(empth_init) [_WIN32]: Change flags to global_flags to prevent
Ron Koenderink [Sat, 2 Jul 2005 14:06:10 +0000 (14:06 +0000)]
(empth_init) [_WIN32]: Change flags to global_flags to prevent
scope conflict with the parameter flags.

18 years agoDocument Windows lossage and work-around.
Markus Armbruster [Fri, 1 Jul 2005 19:52:43 +0000 (19:52 +0000)]
Document Windows lossage and work-around.

18 years agoDoc fix.
Markus Armbruster [Fri, 1 Jul 2005 19:51:48 +0000 (19:51 +0000)]
Doc fix.