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

18 years agoDocument blocking constraints.
Markus Armbruster [Fri, 1 Jul 2005 19:51:00 +0000 (19:51 +0000)]
Document blocking constraints.

18 years ago(loc_GVAR): Putting file local variables into a struct serves no
Markus Armbruster [Thu, 30 Jun 2005 19:53:03 +0000 (19:53 +0000)]
(loc_GVAR): Putting file local variables into a struct serves no
useful purpose whatsoever.  Peel off the struct.

18 years ago(main) [_WIN32]: Windows putchar() screws up when printing multibyte
Ron Koenderink [Thu, 30 Jun 2005 16:10:42 +0000 (16:10 +0000)]
(main) [_WIN32]: Windows putchar() screws up when printing multibyte
strings bytewise unless the stream is buffered.  Switch stdout to
line-buffered mode.
(login): Explicitly flush stdout, because Windows doesn't implement
line-buffering faithfully.

18 years ago(loc_Thread, loc_Sem_t): Remove typedef, use the typedef name defined
Markus Armbruster [Thu, 30 Jun 2005 14:25:30 +0000 (14:25 +0000)]
(loc_Thread, loc_Sem_t): Remove typedef, use the typedef name defined
in the header instead.

Remove some superflous casts.

18 years ago(loc_Sem_t, empth_sem_t) [_WIN32]: empthread.h defines empth_sem_t as
Ron Koenderink [Sun, 26 Jun 2005 18:31:14 +0000 (18:31 +0000)]
(loc_Sem_t, empth_sem_t) [_WIN32]: empthread.h defines empth_sem_t as
incomplete type struct loc_Sem_t.  Instead of completing it here, the
code defined an unrelated type loc_Sem_t as (complete) type struct
empth_sem_t.  The resulting type errors were swept under the carpet
with casts.  Obvious fix.

18 years ago(deliver): Do not deliver friendly civilians into occupied sectors.
Markus Armbruster [Sun, 26 Jun 2005 13:32:15 +0000 (13:32 +0000)]
(deliver): Do not deliver friendly civilians into occupied sectors.

18 years agoMinor clarifications.
Markus Armbruster [Sat, 25 Jun 2005 17:25:50 +0000 (17:25 +0000)]
Minor clarifications.

18 years ago(io_write): Use IO_NOWAIT rather than 0. No functional change.
Markus Armbruster [Sat, 25 Jun 2005 17:24:13 +0000 (17:24 +0000)]
(io_write): Use IO_NOWAIT rather than 0.  No functional change.

18 years agoNew doc & doc fixes. Remove s_char on the way.
Markus Armbruster [Sat, 25 Jun 2005 17:22:45 +0000 (17:22 +0000)]
New doc & doc fixes.  Remove s_char on the way.

(C_MOD): Turn into enumeration constant.

18 years ago(empth_sleep) [_WIN32]: If the sleep returns early, go back to sleep.
Ron Koenderink [Sat, 25 Jun 2005 16:49:20 +0000 (16:49 +0000)]
(empth_sleep) [_WIN32]: If the sleep returns early, go back to sleep.
Short sleeps can cause double-updates and other trouble.

[_WIN32] (loc_SleepThisThread): Not used, removed.

18 years ago(create_pidfile): Silence compiler warning on printing pid_t with %d.
Markus Armbruster [Sat, 25 Jun 2005 16:41:34 +0000 (16:41 +0000)]
(create_pidfile): Silence compiler warning on printing pid_t with %d.

18 years agoDocument Empire's thread abstraction. Minor cleanups:
Markus Armbruster [Sat, 25 Jun 2005 16:37:59 +0000 (16:37 +0000)]
Document Empire's thread abstraction.  Minor cleanups:
(empth_init): Change first parameter to void **.
(empth_sleep): Change parameter to time_t.

18 years agoMore 4.2.21 changes.
Markus Armbruster [Thu, 23 Jun 2005 19:59:42 +0000 (19:59 +0000)]
More 4.2.21 changes.

18 years agoBased on a page Doug Wescott created for his Petting Zoo. I restored
Markus Armbruster [Thu, 23 Jun 2005 19:35:44 +0000 (19:35 +0000)]
Based on a page Doug Wescott created for his Petting Zoo.  I restored
the ASCII art to the original, gave credit to its creator, quoted from
WordNet (free) instead of American Heritage Dictionary, omitted parts
that might be illegal to distribute in certain countries, and improved
see also.

18 years agoDoc clarification.
Markus Armbruster [Thu, 23 Jun 2005 19:21:34 +0000 (19:21 +0000)]
Doc clarification.

18 years agoRemove some dead, disabled code.
Markus Armbruster [Thu, 23 Jun 2005 19:21:18 +0000 (19:21 +0000)]
Remove some dead, disabled code.

18 years agoA better than nothing joke.
Markus Armbruster [Thu, 23 Jun 2005 19:20:25 +0000 (19:20 +0000)]
A better than nothing joke.

18 years agoRewritten in an attempt to present all the initial revision's valuable
Markus Armbruster [Thu, 23 Jun 2005 19:08:19 +0000 (19:08 +0000)]
Rewritten in an attempt to present all the initial revision's valuable
information in a more accessible form, and then some.

18 years agoProtocol, session options and traditional dumps are complete, xdump is
Markus Armbruster [Thu, 23 Jun 2005 19:04:53 +0000 (19:04 +0000)]
Protocol, session options and traditional dumps are complete, xdump is
a stub, parsing human-readable output is missing.

18 years agoUpdate for 4.2.21.
Markus Armbruster [Sat, 18 Jun 2005 17:42:01 +0000 (17:42 +0000)]
Update for 4.2.21.

18 years ago(att_move_in_off): When boarding from a sector, mil entering the ship
Markus Armbruster [Sat, 18 Jun 2005 16:52:17 +0000 (16:52 +0000)]
(att_move_in_off): When boarding from a sector, mil entering the ship
less one were not removed from the sector.  The problem is putsect()
overwriting data from prior put_combat() with old data.  Broken in
rev. 1.17.  Change lunchbox code to match that of 1.16.  Closes
#1219918, reported by Doug Wescott.

18 years agoUpdate for src/util/fairland.c:1.25 and include/prototypes.h:1.84
Marc Olzheim [Wed, 15 Jun 2005 12:55:21 +0000 (12:55 +0000)]
Update for src/util/fairland.c:1.25 and include/prototypes.h:1.84

18 years agoUpdate patch for pr.c:1.22
Marc Olzheim [Wed, 15 Jun 2005 12:47:51 +0000 (12:47 +0000)]
Update patch for pr.c:1.22

18 years ago(copy_ascii_no_funny, copy_utf8_no_funny)
Markus Armbruster [Tue, 14 Jun 2005 05:01:26 +0000 (05:01 +0000)]
(copy_ascii_no_funny, copy_utf8_no_funny)
(copy_utf8_to_ascii_no_funny): Don't consider newline funny.  This
fixes output filtering broken in rev. 1.17.

18 years agoDocument use of UTF-8.
Markus Armbruster [Mon, 13 Jun 2005 19:07:00 +0000 (19:07 +0000)]
Document use of UTF-8.

18 years ago(player_login): Replace pr_player() by equivalent pr_id().
Markus Armbruster [Mon, 13 Jun 2005 19:05:37 +0000 (19:05 +0000)]
(player_login): Replace pr_player() by equivalent pr_id().
(pr_player, upr_player): Internal linkage.

(pr_hilite): Unused, remove.

18 years agoDocument, in particular use of UTF-8. Simplify code in a couple of
Markus Armbruster [Mon, 13 Jun 2005 19:02:49 +0000 (19:02 +0000)]
Document, in particular use of UTF-8.  Simplify code in a couple of
places, but no functional changes.

18 years ago(outid): Fix recovery from bad argument N. Simplify.
Markus Armbruster [Mon, 13 Jun 2005 18:48:54 +0000 (18:48 +0000)]
(outid): Fix recovery from bad argument N.  Simplify.

18 years ago(uprnf): A print function must not change its text argument!
Markus Armbruster [Mon, 13 Jun 2005 18:28:10 +0000 (18:28 +0000)]
(uprnf): A print function must not change its text argument!

18 years ago(copy_ascii_no_funny, copy_utf8_no_funny)
Markus Armbruster [Mon, 13 Jun 2005 18:16:44 +0000 (18:16 +0000)]
(copy_ascii_no_funny, copy_utf8_no_funny)
(copy_utf8_to_ascii_no_funny): New.
(flash, wall, prmptrd, uprmptrd, getcommand): Use them to filter
input.
(uprnf, pr_flash): Use them to filter output.
(prtoascii): No longer used, remove.

(player_commands, player_commands_index): Internal linkage.

18 years ago(upr_player): A print function must not change its text argument!
Markus Armbruster [Mon, 13 Jun 2005 17:27:38 +0000 (17:27 +0000)]
(upr_player): A print function must not change its text argument!

18 years ago(lrange, shoo, execute): Buffer passed to getstarg() was too small.
Markus Armbruster [Mon, 13 Jun 2005 11:32:07 +0000 (11:32 +0000)]
(lrange, shoo, execute): Buffer passed to getstarg() was too small.
Player could overrun it!

18 years ago(player_login, player_main): Move the C_INIT that terminates the login
Markus Armbruster [Mon, 13 Jun 2005 09:45:32 +0000 (09:45 +0000)]
(player_login, player_main): Move the C_INIT that terminates the login
phase to player_login().  No functional change.
(showvers): Trivial, used just once.  Inline, remove.