]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(EF_TREATY_CHR, EF_TREATY_FLAGS): Rename for consistency with other flags.
Markus Armbruster [Sat, 29 Oct 2005 14:36:10 +0000 (14:36 +0000)]
(EF_TREATY_CHR, EF_TREATY_FLAGS): Rename for consistency with other flags.

(treaty_ca): Add missing EF_TREATY_FLAGS to selectors acond, bcond.

18 years ago(tchrstr, tchr_ca): Remove, use struct symbol and symbol_ca. Users
Markus Armbruster [Sat, 29 Oct 2005 14:10:23 +0000 (14:10 +0000)]
(tchrstr, tchr_ca): Remove, use struct symbol and symbol_ca.  Users
changed.
(tchr, treaty_flags): Rename for consistency with other flags.

18 years ago(lookup, symbol): Rename. Rename members to match selectors and
Markus Armbruster [Sat, 29 Oct 2005 07:46:42 +0000 (07:46 +0000)]
(lookup, symbol): Rename.  Rename members to match selectors and
better reflect their purpose.  Users changed.
(lookup_ca, symbol_ca): Rename.

18 years ago(intmatch): Assumes that struct size is a multiple of sizeof(int), out
Markus Armbruster [Sat, 29 Oct 2005 07:15:14 +0000 (07:15 +0000)]
(intmatch): Assumes that struct size is a multiple of sizeof(int), out
of laziness.  The assumption is true on any sane machine, due to
alignment constraints.  But the function doesn't provide enough value
to make me fix or document this.  Remove it.
(lookup): Replace it.

18 years ago(dchr): Remove second sentinel.
Markus Armbruster [Sat, 29 Oct 2005 06:34:21 +0000 (06:34 +0000)]
(dchr): Remove second sentinel.

18 years ago(rpt): Add sentinel.
Markus Armbruster [Sat, 29 Oct 2005 06:27:00 +0000 (06:27 +0000)]
(rpt): Add sentinel.
(EF_NEWS_CHR): New.
(empfile): Add its entry.

18 years ago(ef_byname): Old version didn't work when a table name was followed by
Markus Armbruster [Sat, 29 Oct 2005 06:18:41 +0000 (06:18 +0000)]
(ef_byname): Old version didn't work when a table name was followed by
one of its prefixes.  src/lib/global/file.c rev. 1.18 added such table
entries, and file.h rev. 1.34 made them visible to ef_byname().
Simply use stmtch().  This also rejects ambiguous abbreviations: "s"
used to return EF_SECTOR, it now returns M_NOTUNIQUE.

18 years ago(nchr): Move the array size to nuke.h. Add rows for configurable units.
Ron Koenderink [Fri, 28 Oct 2005 13:23:08 +0000 (13:23 +0000)]
(nchr): Move the array size to nuke.h.  Add rows for configurable units.
(lchr,plchr,mchr): Add array size to land.h/plane.h/ship.h.  Add rows for
configurable units.
(ichr,pchr,dchr,intrchr): Add array size to item.h/product.h/sect.h.

18 years ago(empfile): Add one to the array size for the sentinel row.
Ron Koenderink [Fri, 28 Oct 2005 12:56:54 +0000 (12:56 +0000)]
(empfile): Add one to the array size for the sentinel row.

18 years ago(NSC_CONST,castr,meta_flags): Add new flag NSC_CONST to castr.
Ron Koenderink [Fri, 28 Oct 2005 12:35:36 +0000 (12:35 +0000)]
(NSC_CONST,castr,meta_flags): Add new flag NSC_CONST to castr.
(ichr_ca,pchr_ca,intrchr_ca): Use it.

18 years ago(EF_IS_GAME_STATE): New.
Markus Armbruster [Fri, 28 Oct 2005 07:03:31 +0000 (07:03 +0000)]
(EF_IS_GAME_STATE): New.
(xdump, main): Use it.

(EF_MAX): Change to largest table ID + 1.  This is now possible
because the changes above get rid of the assumption that
empfile[0..EF_MAX-1] is only game state.  Code can now work on any
table using the advertized empfile interface, not just on game state.
(my_ef_byname): Remove, use ef_byname().

18 years ago(set): Fix the previous revision.
Markus Armbruster [Thu, 27 Oct 2005 23:23:42 +0000 (23:23 +0000)]
(set): Fix the previous revision.

18 years ago(ef_byname_from): New.
Markus Armbruster [Thu, 27 Oct 2005 21:33:17 +0000 (21:33 +0000)]
(ef_byname_from): New.
(set, mission, multifire, fuel, cons_choose, cede): Use it instead of
ef_byname().  Remove the hacks to map unwanted results to wanted
results.  The hacks in set() were broken: bad input made the code cast
arbitrary items to union trdgenstr, with potentially disastrous
consequences.  Closes #906483 and #906486.

(set): Less cryptic prompt and diagnostics.

18 years ago(xdftr): Change footer to / instead of dumped.
Ron Koenderink [Thu, 27 Oct 2005 21:22:33 +0000 (21:22 +0000)]
(xdftr): Change footer to / instead of dumped.

18 years ago(xdump,xdchr,xdhdr,xdhdr1): Add meta data dump to xdump.
Ron Koenderink [Thu, 27 Oct 2005 19:37:19 +0000 (19:37 +0000)]
(xdump,xdchr,xdhdr,xdhdr1): Add meta data dump to xdump.

18 years ago(ef_open): Implement EFF_STATIC.
Markus Armbruster [Wed, 26 Oct 2005 16:49:52 +0000 (16:49 +0000)]
(ef_open): Implement EFF_STATIC.

(ef_open): Simplify dynamic buffer allocation.

18 years ago(empth_start, empth_init) [_EMPTH_POSIX]: Do not handle SIGALRM. We
Markus Armbruster [Wed, 26 Oct 2005 16:30:00 +0000 (16:30 +0000)]
(empth_start, empth_init) [_EMPTH_POSIX]: Do not handle SIGALRM.  We
don't raise it, and the signal handler is fishy.
(empth_alarm): Unused, remove.

18 years ago(info): Remove dead code.
Markus Armbruster [Wed, 26 Oct 2005 16:22:32 +0000 (16:22 +0000)]
(info): Remove dead code.

18 years agoOne more SNEAK_ATTACK leftover.
Markus Armbruster [Wed, 26 Oct 2005 16:19:17 +0000 (16:19 +0000)]
One more SNEAK_ATTACK leftover.

18 years ago(disassoc): Rewrite for POSIX, return status. Caller changed.
Markus Armbruster [Tue, 25 Oct 2005 18:42:03 +0000 (18:42 +0000)]
(disassoc): Rewrite for POSIX, return status.  Caller changed.
Problems with the old code:
* Insufficient error checking.
* It used TIOCNOTTY (obsolete BSDism) to get rid of the controlling
  tty, except for hpux || Rel4, where it attempted to use the POSIX
  way, but screwed up.
* It left file descriptors 0, 1, 2 in a somewhat weird state.

18 years ago(empfile,mdchr_ca,meta_type,meta_flags):
Ron Koenderink [Tue, 25 Oct 2005 00:37:59 +0000 (00:37 +0000)]
(empfile,mdchr_ca,meta_type,meta_flags):
Add meta table and associated symbol tables.

18 years ago(main): Don't close EF_NATION twice.
Markus Armbruster [Mon, 24 Oct 2005 23:39:45 +0000 (23:39 +0000)]
(main): Don't close EF_NATION twice.

18 years ago(EFF_STATIC): New.
Markus Armbruster [Mon, 24 Oct 2005 23:35:18 +0000 (23:35 +0000)]
(EFF_STATIC): New.
(empfile): Use it.
(ef_open): Oops on it (not implemented).
(ef_close): Implement it (trivial).

18 years agoComments.
Markus Armbruster [Mon, 24 Oct 2005 23:30:22 +0000 (23:30 +0000)]
Comments.

18 years ago(ef_nameof, ef_ensure_space): Oops on bad argument.
Markus Armbruster [Mon, 24 Oct 2005 23:27:18 +0000 (23:27 +0000)]
(ef_nameof, ef_ensure_space): Oops on bad argument.

(ef_check): Use CANT_HAPPEN().

18 years ago(ef_zapcache): Clearing the cache doesn't make sense. No harm done if
Markus Armbruster [Mon, 24 Oct 2005 23:23:53 +0000 (23:23 +0000)]
(ef_zapcache): Clearing the cache doesn't make sense.  No harm done if
the next user can't use the cache, it gets automatically zapped then.
Remove.

18 years ago(ef_read): Catch null cache.
Markus Armbruster [Mon, 24 Oct 2005 23:16:13 +0000 (23:16 +0000)]
(ef_read): Catch null cache.

(ef_read): Used to get the file size again some circumstances; doesn't
make sense, as no other process may be writing this file.

(ef_write): Don't refuse to write beyond record 65536.  This module
can cope with that.  Some users have trouble long before that (short
record numbers), but that should be handled there.

(ef_write): Catch table not file-backed.

18 years ago(ef_extend): Use do_write() & simplify. Catch table not file-backed.
Markus Armbruster [Mon, 24 Oct 2005 22:47:16 +0000 (22:47 +0000)]
(ef_extend): Use do_write() & simplify.  Catch table not file-backed.
Catch negative count; used to have no effect with EFF_MEM, and
confusion otherwise.  Try to recover from partially successful
extension.  Need help from ef_write() to do a better job; to be done.

18 years ago(ef_extend): Fix rev. 1.25.
Markus Armbruster [Mon, 24 Oct 2005 22:44:29 +0000 (22:44 +0000)]
(ef_extend): Fix rev. 1.25.

18 years agoClean up rev. 1.30.
Markus Armbruster [Mon, 24 Oct 2005 21:57:20 +0000 (21:57 +0000)]
Clean up rev. 1.30.

18 years ago(ef_ptr): Change return type to void *.
Markus Armbruster [Mon, 24 Oct 2005 21:43:47 +0000 (21:43 +0000)]
(ef_ptr): Change return type to void *.

(ef_ptr): Use CANT_HAPPEN() to ensure EFF_MEM; check it before less
serious index out of range failure.

18 years ago(ef_open): Fix fatal typo.
Markus Armbruster [Mon, 24 Oct 2005 20:42:27 +0000 (20:42 +0000)]
(ef_open): Fix fatal typo.

18 years ago(ef_open): Portability fix: malloc(0) may return null, which is not a
Markus Armbruster [Mon, 24 Oct 2005 20:36:17 +0000 (20:36 +0000)]
(ef_open): Portability fix: malloc(0) may return null, which is not a
failure.  fillcache() chokes on null cache, so don't call it for empty
files.

18 years ago(ef_open): Failed to reset empfile member fd on failure, and leaked
Markus Armbruster [Mon, 24 Oct 2005 20:18:04 +0000 (20:18 +0000)]
(ef_open): Failed to reset empfile member fd on failure, and leaked
file descriptors.

(ef_flush, ef_close): Rely on negative fd instead of null cache to
detect unopened file.  This is more logical and consistent with the
use of cache by the new tables that are not file-backed (rev. 1.22).
Use CANT_HAPPEN().

(ef_close): Failed to report cash flush failure.

(ef_close): Clear all EFF_OPEN flags.  Should have been done in
rev. 1.27.

18 years ago(do_write): New.
Markus Armbruster [Mon, 24 Oct 2005 19:17:05 +0000 (19:17 +0000)]
(do_write): New.
(ef_flush, ef_write): Use it.  Old code couldn't cope with interrupted
or short writes (mostly harmless, as disk reads commonly complete).

(ef_write): Use CANT_HAPPEN() for catching unimplemented table
extensions.

18 years ago(fillcache): Rewrite. Old version failed to check success of lseek(),
Markus Armbruster [Mon, 24 Oct 2005 19:02:39 +0000 (19:02 +0000)]
(fillcache): Rewrite.  Old version failed to check success of lseek(),
couldn't cope with interrupted or short reads (mostly harmless, as
disk reads commonly complete), and left an empty cache after a failed
read.
(ef_open): Use fillcache() instead of read().
(ef_read): Fail if fillcache() fails to read at least one element.
Old version copied garbage to its caller and claimed success.

18 years ago(ef_open): Fail if file size is not a multiple of record size.
Markus Armbruster [Mon, 24 Oct 2005 18:40:13 +0000 (18:40 +0000)]
(ef_open): Fail if file size is not a multiple of record size.

18 years ago(ef_open, EFF_RDONLY, EFF_CREATE, EFF_OPEN): Replace mode parameter
Markus Armbruster [Mon, 24 Oct 2005 18:18:59 +0000 (18:18 +0000)]
(ef_open, EFF_RDONLY, EFF_CREATE, EFF_OPEN): Replace mode parameter
(really open flags, not mode) by new flags EFF_RDONLY, EFF_CREATE.
Open flags were needlessly general.  Callers changed.
(empfile): Member mode now unused, remove.

18 years agoUpdate for src/lib/commands/new.c:1.24 and include/prototypes.h:1.92
Marc Olzheim [Mon, 24 Oct 2005 15:35:35 +0000 (15:35 +0000)]
Update for src/lib/commands/new.c:1.24 and include/prototypes.h:1.92

18 years ago(START_UNITS, start_unit_type, deity_build_land, new): Remove
Markus Armbruster [Sun, 23 Oct 2005 20:52:46 +0000 (20:52 +0000)]
(START_UNITS, start_unit_type, deity_build_land, new): Remove
undocumented compile-time option START_UNITS.  It hasn't been used in
ages; writing a quick build script is easier than recompiling the
server.

18 years agoClean up the previous revision.
Markus Armbruster [Sun, 23 Oct 2005 15:03:12 +0000 (15:03 +0000)]
Clean up the previous revision.

18 years agoMore 4.2.23 changes. v4.2.23
Markus Armbruster [Sun, 23 Oct 2005 09:36:26 +0000 (09:36 +0000)]
More 4.2.23 changes.

18 years agoUpdate example to current output.
Markus Armbruster [Sun, 23 Oct 2005 09:28:15 +0000 (09:28 +0000)]
Update example to current output.

18 years agoRemove option SNEAK_ATTACK leftovers.
Markus Armbruster [Sun, 23 Oct 2005 09:26:15 +0000 (09:26 +0000)]
Remove option SNEAK_ATTACK leftovers.

18 years ago(draw_map): Parameter bmap abused EF_MAP and EF_BMAP, and required the
Markus Armbruster [Sun, 23 Oct 2005 08:58:23 +0000 (08:58 +0000)]
(draw_map): Parameter bmap abused EF_MAP and EF_BMAP, and required the
silly EF_NMAP.  Use characters instead: 'b' for bmap (was EF_BMAP),
't' for true bmap (was EF_MAP), 'r' for revert (was EF_MAP+EF_BMAP,
more sillness), and 'n' for nmap (was EF_NMAP).  Callers changed.
(EF_NMAP): Remove.

18 years ago[NOSTRDUP]: Drop support for systems without strdup(). First commit
Markus Armbruster [Sun, 23 Oct 2005 08:37:38 +0000 (08:37 +0000)]
[NOSTRDUP]: Drop support for systems without strdup().  First commit
was incomplete.

18 years ago(map, draw_map): Remove undocumented feature that lets deities run map
Markus Armbruster [Sun, 23 Oct 2005 08:32:49 +0000 (08:32 +0000)]
(map, draw_map): Remove undocumented feature that lets deities run map
as another country.  It appeared around Chainsaw 3.0 and never fully
worked.  See also #1335316.

18 years ago(map): Fix rev. 1.4: it treated nmap as a bmap command.
Markus Armbruster [Sun, 23 Oct 2005 07:41:24 +0000 (07:41 +0000)]
(map): Fix rev. 1.4: it treated nmap as a bmap command.

18 years ago(ef_close): Reset member fd.
Markus Armbruster [Sun, 23 Oct 2005 06:24:08 +0000 (06:24 +0000)]
(ef_close): Reset member fd.
(ef_open): Catch attempt to open open file.

18 years ago(EFF_OPEN): New.
Markus Armbruster [Sun, 23 Oct 2005 06:17:14 +0000 (06:17 +0000)]
(EFF_OPEN): New.
(ef_open): Restrict HOW to EFF_OPEN.

18 years ago(ship_ca,land_ca,plane_ca): Add missing EF_BAD for radius row in
Ron Koenderink [Sat, 22 Oct 2005 23:53:46 +0000 (23:53 +0000)]
(ship_ca,land_ca,plane_ca): Add missing EF_BAD for radius row in
NSC_GENITEM.

18 years ago(ef_open): Remove code killed by the previous revision.
Markus Armbruster [Sat, 22 Oct 2005 19:59:56 +0000 (19:59 +0000)]
(ef_open): Remove code killed by the previous revision.

18 years ago[aix]: Remove special case include, I doubt it's necessary.
Markus Armbruster [Sat, 22 Oct 2005 19:31:44 +0000 (19:31 +0000)]
[aix]: Remove special case include, I doubt it's necessary.

18 years ago[_NTSDK]: Remove _NTSDK not needed.
Ron Koenderink [Sat, 22 Oct 2005 19:19:16 +0000 (19:19 +0000)]
[_NTSDK]: Remove _NTSDK not needed.

18 years ago(ef_open): Don't assume blksize() is the same for all files.
Markus Armbruster [Sat, 22 Oct 2005 19:12:27 +0000 (19:12 +0000)]
(ef_open): Don't assume blksize() is the same for all files.

(ef_open): Ensure the cache has at least one slot.

18 years ago(empfile, empfile_ca): New struct empfile member ef_uid.
Ron Koenderink [Sat, 22 Oct 2005 19:10:22 +0000 (19:10 +0000)]
(empfile, empfile_ca): New struct empfile member ef_uid.

18 years ago(blksize) [aix, sgi]: Drop special case; I bet these systems support
Markus Armbruster [Sat, 22 Oct 2005 19:09:12 +0000 (19:09 +0000)]
(blksize) [aix, sgi]: Drop special case; I bet these systems support
st_blksize by now.

18 years ago(wripglob): No need to include misc.h since rev. 1.16.
Markus Armbruster [Sat, 22 Oct 2005 18:55:30 +0000 (18:55 +0000)]
(wripglob): No need to include misc.h since rev. 1.16.

18 years ago(ioq_destroy) [aix, NeXT]: Remove special case, which leaked memory,
Markus Armbruster [Sat, 22 Oct 2005 18:28:11 +0000 (18:28 +0000)]
(ioq_destroy) [aix, NeXT]: Remove special case, which leaked memory,
because freeing it didn't work at some time.  Well, it either works
now, or we'll find out what's wrong.

18 years agoUltrix is no longer supported, remove special case.
Markus Armbruster [Sat, 22 Oct 2005 18:24:01 +0000 (18:24 +0000)]
Ultrix is no longer supported, remove special case.

18 years ago[NOSTRDUP]: Drop support for systems without strdup().
Markus Armbruster [Sat, 22 Oct 2005 18:12:22 +0000 (18:12 +0000)]
[NOSTRDUP]: Drop support for systems without strdup().

18 years ago(castr,empfile,ship_chr,plane_chr,land_chr,nuke_chr):
Ron Koenderink [Sat, 22 Oct 2005 16:39:45 +0000 (16:39 +0000)]
(castr,empfile,ship_chr,plane_chr,land_chr,nuke_chr):
Add table index to castr to create a reference to the symbol table.
Add "ship chr flags" table to empfile.
Add "plane chr flags" table to empfile.
Add "land chr flags" table to empfile.
Add "nuke chr flags" table to empfile.
Add EF_SHIP_CHR_FLAGS reference to ship_chr.
Add EF_PLANE_CHR_FLAGS reference to plane_chr.
Add EF_LAND_CHR_FLAGS reference to land_chr.
Add EF_NUKE_CHR_FLAGS reference to nuke_chr.

(show_ship_capab,show_plane_capab,show_land_capab,
show_nuke_capab,ship_flags,land_flags,plane_flags,nuke_flags):
Move ship_flags nsc.c from show.c
Rename ship_flags to ship_chr_flags.
Move plane_flags nsc.c from show.c
Rename plane_flags to plane_chr_flags.
Move land_flags nsc.c from show.c
Rename land_flags to land_chr_flags.
Move nuke_flags nsc.c from show.c
Rename nuke_flags to nuke_chr_flags.
This is to accomodate future symbol table for EF_PLANE table.

18 years ago(ef_init): Remove cadef member from fileinit,
Ron Koenderink [Sat, 22 Oct 2005 13:55:04 +0000 (13:55 +0000)]
(ef_init): Remove cadef member from fileinit,
insert directly into the empfile structure.
Add ef_type member to fileinit to identify rows with data.
Remove unused rows of fileinit.

18 years ago(empfile[]) Add table of tables to empfile[].
Ron Koenderink [Sat, 22 Oct 2005 12:38:58 +0000 (12:38 +0000)]
(empfile[]) Add table of tables to empfile[].

18 years ago(player_init): Fix initialization of sin. Some systems have a member
Markus Armbruster [Sat, 22 Oct 2005 10:23:20 +0000 (10:23 +0000)]
(player_init): Fix initialization of sin.  Some systems have a member
sin_zero and choke when it's not zeroed.  INADDR_ANY wasn't converted
to network byte order, but since it's zero, the bug couldn't bite.

18 years ago(io_open, io_noblocking): FNDELAY is long obsolete, use O_NONBLOCK.
Markus Armbruster [Sat, 22 Oct 2005 10:18:07 +0000 (10:18 +0000)]
(io_open, io_noblocking): FNDELAY is long obsolete, use O_NONBLOCK.

18 years ago(new): Fix initialization of realms for players_at_00.
Markus Armbruster [Sat, 22 Oct 2005 10:12:18 +0000 (10:12 +0000)]
(new): Fix initialization of realms for players_at_00.

18 years ago(empfile, chr_camap): Merge chr_camap[] into empfile[]. No existing
Markus Armbruster [Fri, 21 Oct 2005 19:38:37 +0000 (19:38 +0000)]
(empfile, chr_camap): Merge chr_camap[] into empfile[].  No existing
user sees the new elements of empfile[].
(EF_SECTOR_CHR, EF_SHIP_CHR, EF_PLANE_CHR, EF_LAND_CHR, EF_NUKE_CHR)
(EF_TREATY_CHR, EF_ITEM, EF_INFRASTRUCTURE, EF_PRODUCT): New.  Not yet
used.
(my_ef_byname): Replacement for ef_byname() that sees the new
elements.
(xdchr): Work with empfile[] instead of chr_camap[].
(xdump): Use my_ef_byname() instead of ef_byname() and
chridx_by_name().
(camap, chr_camap, chridx_by_name): Remove.

18 years agoFix the previous revision.
Markus Armbruster [Fri, 21 Oct 2005 18:21:46 +0000 (18:21 +0000)]
Fix the previous revision.

18 years agoAnother 4.2.23 change.
Markus Armbruster [Fri, 21 Oct 2005 18:20:20 +0000 (18:20 +0000)]
Another 4.2.23 change.

18 years ago(show_opts): Pretend option SHIPNAMES still exists for the benefit of
Markus Armbruster [Fri, 21 Oct 2005 18:16:50 +0000 (18:16 +0000)]
(show_opts): Pretend option SHIPNAMES still exists for the benefit of
clients that still depend on it.

18 years agoDon't use conditional compilation to time out obsolete stuff. Do it
Markus Armbruster [Fri, 21 Oct 2005 17:55:34 +0000 (17:55 +0000)]
Don't use conditional compilation to time out obsolete stuff.  Do it
by hand.

18 years agoUpdate for 4.2.23.
Markus Armbruster [Fri, 21 Oct 2005 05:58:30 +0000 (05:58 +0000)]
Update for 4.2.23.

18 years ago(do_conv) Remove CR.
Ron Koenderink [Thu, 20 Oct 2005 14:52:18 +0000 (14:52 +0000)]
(do_conv) Remove CR.

18 years ago(INTERIXCFLAGS, LINUXCFLAGS, LINUXPTHCFLAGS): Don't define
Markus Armbruster [Wed, 19 Oct 2005 18:18:17 +0000 (18:18 +0000)]
(INTERIXCFLAGS, LINUXCFLAGS, LINUXPTHCFLAGS): Don't define
LISTENMAXCONN; it's unused since src/lib/player/accept.c rev. 1.26.
That revision's change log is quite confused.

18 years ago(do_conv) Move the initialization of the natp to be inside sector loop, this
Ron Koenderink [Tue, 18 Oct 2005 16:11:19 +0000 (16:11 +0000)]
(do_conv) Move the initialization of the natp to be inside sector loop, this
allows the deity to use the research level of the sector owner.  This also
fixes the use of an uninitialized sector data structure.

18 years ago(ichr_ca,pchr_ca,dchr_ca,mchr_ca,plchr_ca,lchr_ca,nchr_ca,
Ron Koenderink [Tue, 18 Oct 2005 12:14:10 +0000 (12:14 +0000)]
(ichr_ca,pchr_ca,dchr_ca,mchr_ca,plchr_ca,lchr_ca,nchr_ca,
tchr_ca,rpt_ca,intrchr_ca ) Move from src/lib/commands/xdump.c
to src/lib/global/nsc.c; external linkage.  They were created in
xdump.c to minimize initial impact on the source, but they
really belong to nsc.c, where other code can use them as well.

18 years ago(pin_bomb) Remove unused variable qp.
Ron Koenderink [Tue, 18 Oct 2005 12:12:15 +0000 (12:12 +0000)]
(pin_bomb) Remove unused variable qp.

18 years agoMore 4.2.22 changes. v4.2.22
Markus Armbruster [Tue, 11 Oct 2005 20:59:00 +0000 (20:59 +0000)]
More 4.2.22 changes.

18 years agoReplace incorrect claim on morale_base by reference to info morale.
Markus Armbruster [Tue, 11 Oct 2005 20:48:30 +0000 (20:48 +0000)]
Replace incorrect claim on morale_base by reference to info morale.
Reported by Doug Wescott.

18 years ago(play_cmd): Log begin and end of playing session. Closes #911285.
Markus Armbruster [Tue, 11 Oct 2005 20:25:40 +0000 (20:25 +0000)]
(play_cmd): Log begin and end of playing session.  Closes #911285.

(kill_cmd): Log killing.

18 years agoDoc clarification.
Markus Armbruster [Tue, 11 Oct 2005 20:12:32 +0000 (20:12 +0000)]
Doc clarification.

18 years ago(babies): Err, the maxpop case wasn't an optimization... Without
Markus Armbruster [Tue, 11 Oct 2005 20:10:15 +0000 (20:10 +0000)]
(babies): Err, the maxpop case wasn't an optimization...  Without
that, we get negative babies, which leads to negative avail and baby
food (cannibalism?) in grow_people().  Restore it.

18 years ago(nreport): Simplify.
Markus Armbruster [Tue, 11 Oct 2005 19:31:33 +0000 (19:31 +0000)]
(nreport): Simplify.

18 years agoDoc fix.
Markus Armbruster [Tue, 11 Oct 2005 19:29:50 +0000 (19:29 +0000)]
Doc fix.

18 years ago(set): Fix initialization of trd_y. The initial value is believed not
Markus Armbruster [Tue, 11 Oct 2005 19:27:05 +0000 (19:27 +0000)]
(set): Fix initialization of trd_y.  The initial value is believed not
to be used.

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.