]> git.pond.sub.org Git - empserver/log
empserver
18 years ago(CFLAGS): Recent versions of gcc have a built-in function carg(),
Markus Armbruster [Sat, 21 Jan 2006 08:06:17 +0000 (08:06 +0000)]
(CFLAGS): Recent versions of gcc have a built-in function carg(),
which collides with our carg().  Suppress.

18 years ago(shp_nav): Skip ships that are landlocked.
Ron Koenderink [Sat, 21 Jan 2006 00:30:17 +0000 (00:30 +0000)]
(shp_nav): Skip ships that are landlocked.
The shp_mess() frees the ship record but shp_nav() continues
processing the ship record causing a corruption of the
memory poll which results in a server crash.

18 years agoWork around MinGW Make's broken built-in link rule.
Markus Armbruster [Fri, 20 Jan 2006 07:48:10 +0000 (07:48 +0000)]
Work around MinGW Make's broken built-in link rule.

18 years ago(shp_check_nav): Remove the masking. This should have
Ron Koenderink [Wed, 18 Jan 2006 23:26:13 +0000 (23:26 +0000)]
(shp_check_nav): Remove the masking.  This should have
be done when the d_nav's defines were replaced with a
enum d_navigation.  No functional changes.

18 years ago(sail_ship): Only print the reached message when
Ron Koenderink [Wed, 18 Jan 2006 01:37:47 +0000 (01:37 +0000)]
(sail_ship): Only print the reached message when
the fleet actually moves.

18 years ago(sail_nav_fleet): Prevent a large fleet from sailing through
Ron Koenderink [Wed, 18 Jan 2006 01:08:55 +0000 (01:08 +0000)]
(sail_nav_fleet): Prevent a large fleet from sailing through
a canal.  Ensure only ships with M_CANAL can navigate a
canal.

18 years ago(sect_has_dock): New.
Ron Koenderink [Tue, 17 Jan 2006 23:38:51 +0000 (23:38 +0000)]
(sect_has_dock): New.
(fuel, load, nav_loadship): Use it.

18 years ago(load): Fix the printing of city when describing loadable sectors.
Ron Koenderink [Tue, 17 Jan 2006 22:23:13 +0000 (22:23 +0000)]
(load): Fix the printing of city when describing loadable sectors.
Broken in Rev. 1.21.

18 years ago(d_navigation): New.
Ron Koenderink [Tue, 17 Jan 2006 21:58:25 +0000 (21:58 +0000)]
(d_navigation): New.
(dchrstr): Use it.

18 years ago(dchr): Use NAV_NONE.
Ron Koenderink [Tue, 17 Jan 2006 21:58:25 +0000 (21:58 +0000)]
(dchr): Use NAV_NONE.

18 years ago(EF_SECTOR_NAVIGATION, sector_navigation): New.
Ron Koenderink [Tue, 17 Jan 2006 21:42:02 +0000 (21:42 +0000)]
(EF_SECTOR_NAVIGATION, sector_navigation): New.
(empfile): Add it.
(dchr_ca): Use it.
(NAV_NONE): New.

18 years ago(dchrstr): Rename member d_flg to d_nav. Users changed.
Ron Koenderink [Tue, 17 Jan 2006 21:17:19 +0000 (21:17 +0000)]
(dchrstr): Rename member d_flg to d_nav.  Users changed.

18 years ago(check_nav, shp_check_nav, sail_nav_fleet, retreat_ship1):
Ron Koenderink [Tue, 17 Jan 2006 13:11:24 +0000 (13:11 +0000)]
(check_nav, shp_check_nav, sail_nav_fleet, retreat_ship1):
Make shp_check_nav() public.
Remove check_nav(), replace with shp_check_nav().
No functional change as check_nav() and shp_check_nav() are
identical.

18 years agoNot used in the new build process; remove.
Markus Armbruster [Sun, 15 Jan 2006 20:11:04 +0000 (20:11 +0000)]
Not used in the new build process; remove.

18 years ago(dist): Implement. The client tarball doesn't work yet.
Markus Armbruster [Sun, 15 Jan 2006 20:10:27 +0000 (20:10 +0000)]
(dist): Implement.  The client tarball doesn't work yet.
(TARNAME, VERSION, tarball, acdist, src_distgen, bld_distgen)
(dist-source, dist-client, dist-info, check-version): New.

18 years ago(ac): Fix location of autom4te.cache.
Markus Armbruster [Sun, 15 Jan 2006 19:49:56 +0000 (19:49 +0000)]
(ac): Fix location of autom4te.cache.
(clean): Add missing $(empth_obj).

18 years ago(info.html/TOP.html): Fix.
Markus Armbruster [Sun, 15 Jan 2006 18:19:27 +0000 (18:19 +0000)]
(info.html/TOP.html): Fix.

18 years agoReorder variable definitions. No functional changes.
Markus Armbruster [Sun, 15 Jan 2006 18:15:50 +0000 (18:15 +0000)]
Reorder variable definitions.  No functional changes.

18 years ago(EXEEXT): New.
Markus Armbruster [Sun, 15 Jan 2006 18:07:58 +0000 (18:07 +0000)]
(EXEEXT): New.
(util, client, server): Use it.

18 years ago(distclean): Clean up another rev. 1.11 leftover.
Markus Armbruster [Sun, 15 Jan 2006 18:02:01 +0000 (18:02 +0000)]
(distclean): Clean up another rev. 1.11 leftover.

18 years ago(distclean): Clean up rev. 1.11 leftover.
Markus Armbruster [Sun, 15 Jan 2006 12:57:49 +0000 (12:57 +0000)]
(distclean): Clean up rev. 1.11 leftover.

18 years agoThe code to fail when new subject's file exists failed always. Fix.
Markus Armbruster [Sun, 15 Jan 2006 08:05:13 +0000 (08:05 +0000)]
The code to fail when new subject's file exists failed always.  Fix.

18 years agoRemove useless width from printf conversion %c.
Markus Armbruster [Sat, 14 Jan 2006 20:06:29 +0000 (20:06 +0000)]
Remove useless width from printf conversion %c.

18 years ago(EF_COUNTRY, cou_ca): New.
Markus Armbruster [Sat, 14 Jan 2006 16:28:33 +0000 (16:28 +0000)]
(EF_COUNTRY, cou_ca): New.
(empfile): Add it.
(xdvisible): Deal with it.
(ef_open_srv, ef_close_srv): Set it up.
(ef_init_view, ef_fina_view): New.

18 years agoAvoid compiler warnings triggered by the previous revision.
Markus Armbruster [Sat, 14 Jan 2006 16:13:30 +0000 (16:13 +0000)]
Avoid compiler warnings triggered by the previous revision.

18 years agoFix the previous revision.
Markus Armbruster [Sat, 14 Jan 2006 16:11:22 +0000 (16:11 +0000)]
Fix the previous revision.

18 years ago(sona): Simplify the memory allocation for rad[] and vis[].
Ron Koenderink [Sat, 14 Jan 2006 15:50:16 +0000 (15:50 +0000)]
(sona): Simplify the memory allocation for rad[] and vis[].
No functional changes.

18 years ago(list_realm): Fix type of parameter curr (broken in rev. 1.9).
Markus Armbruster [Sat, 14 Jan 2006 15:30:18 +0000 (15:30 +0000)]
(list_realm): Fix type of parameter curr (broken in rev. 1.9).
Simplify.

18 years ago(real): Fix the previous revision.
Markus Armbruster [Sat, 14 Jan 2006 15:20:24 +0000 (15:20 +0000)]
(real): Fix the previous revision.

18 years ago(sona): Fix memory allocation for rad[] and vis[]. The space request
Ron Koenderink [Fri, 13 Jan 2006 22:56:41 +0000 (22:56 +0000)]
(sona): Fix memory allocation for rad[] and vis[].  The space request
for rad[] and vis[] is too small because it did not consider the size
of the array element.  Broken in rev. 1.15.

18 years agoMove realms from the nation file into a new realms file:
Ron Koenderink [Fri, 13 Jan 2006 13:18:56 +0000 (13:18 +0000)]
Move realms from the nation file into a new realms file:
(boundstr, realmstr): Rename, new members ef_type, r_cnum, r_uid,
r_realm, r_timestamp.
(natstr): Remove member nat_b[].
(EF_REALM, realm_ca): New.
(empfile): Add it.
(ef_open_srv, ef_close_srv, main): Deal with new file.
(getrealm, putrealm): New.
(add, new, real, list_realm, sarg_getrange): Use them.

18 years ago(ship_bomb, deli, do_demo, fuel, grin, look_ship)
Ron Koenderink [Thu, 12 Jan 2006 14:23:55 +0000 (14:23 +0000)]
(ship_bomb, deli, do_demo, fuel, grin, look_ship)
(ltend, multifire, quite_bigdef, mine, landmine)
(do_loan, prod, printdiff, sell, sona, stre)
(tend, fire_dchrg, vers, work, ac_planedamage)
(ac_shipflak, ask_off, get_mine_dsupport, att_fight)
(ask_move_in_off, detonate, sd, land_gun)
(land_unitgun, lnd_fort_interdiction, lnd_fortify)
(perform_mission, pln_mine, pln_mobcost)
(retreat_ship1, retreat_land1, shp_sweep)
(shp_fort_interdiction, shp_missle_defense)
(new_work, growfood, upd_land, land_repair)
(get_materials, do_mob_ship, do_mob_land)
(load_it, unload_it, prod_plane, produce)
(guerrilla, upd_buildeff, spread_fallout)
(upd_ship, ship_repair, min, dmin, MIN):
Remove min() and dmin() functions and replace
with a MIN macro in misc.h.  Remove local MIN
macros and use the new one in misc.h.  This
change removes the need for the special
case for _WIN32.

(fuel, look_ship, multifire, mission, sona)
(plane_sona, ef_open, player_accept, player_main)
(ac_dog, att_get_combat, calc_mobcost)
(ask_move_in_off, intelligence_report)
(build_mission_list_type, perform_mission)
(show_mission, use_supply, dodistribute)
(allocate_memory, max, dmax, MAX):
Remove max() and dmax() functions and replace
with a MAX macro in misc.h.  Remove local MAX
macros and use the new one in misc.h.  This
change removes the need for the special
case for _WIN32.

18 years ago(EF_BAD, EF_SECTOR, EF_SHIP, EF_PLANE, EF_LAND, EF_NUKE)
Ron Koenderink [Tue, 10 Jan 2006 19:53:34 +0000 (19:53 +0000)]
(EF_BAD, EF_SECTOR, EF_SHIP, EF_PLANE, EF_LAND, EF_NUKE)
(EF_NEWS, EF_TREATY, EF_TRADE, EF_POWER, EF_NATION)
(EF_LOAN, EF_MAP, EF_BMAP, EF_COMM, EF_LOST)
(EF_SECTOR_CHR, EF_SHIP_CHR, EF_PLANE_CHR)
(EF_LAND_CHR, EF_NUKE_CHR, EF_NEWS_CHR)
( EF_TREATY_FLAGS, EF_ITEM, EF_INFRASTRUCTURE)
(EF_PRODUCT, EF_TABLE, EF_SHIP_CHR_FLAGS)
(EF_PLANE_CHR_FLAGS, EF_LAND_CHR_FLAGS)
(EF_NUKE_CHR_FLAGS, EF_META)
(EF_META_TYPE, EF_META_FLAGS, EF_MISSIONS)
(EF_PLANE_FLAGS, EF_RETREAT_FLAGS, EF_NATION_FLAGS)
(EF_NATION_RELATIONS, EF_LEVEL, EF_AGREEMENT_STATUS)
(EF_PLAGUE_STAGES, EF_PACKING, EF_RESOURCES)
(EF_NATION_STATUS, EF_MAX): Turn into enumeration constants.

18 years ago(acce): Remove unused variable 'n'.
Ron Koenderink [Sun, 8 Jan 2006 22:07:49 +0000 (22:07 +0000)]
(acce): Remove unused variable 'n'.

18 years ago(L_XLIGHT, lchr[], land_chr_flags[], take_plane_off_land,
Ron Koenderink [Sun, 8 Jan 2006 19:12:04 +0000 (19:12 +0000)]
(L_XLIGHT, lchr[], land_chr_flags[], take_plane_off_land,
put_plane_on_land, load_plane_land, can_fly):
Remove L_XLIGHT flag and replace with checks of lnd_maxlight.
Closes #758459.

18 years ago(xuloadrow): Add support for NSC_SHORT.
Ron Koenderink [Sun, 8 Jan 2006 04:11:15 +0000 (04:11 +0000)]
(xuloadrow): Add support for NSC_SHORT.

18 years ago(share_incr): Simplify country status check for tech bleed
Markus Armbruster [Sat, 7 Jan 2006 09:35:39 +0000 (09:35 +0000)]
(share_incr): Simplify country status check for tech bleed
participation.  Only STAT_SANCT and STAT_ACTIVE receive, and only
STAT_ACTIVE bleed.  Both used to be STAT_NEW, STAT_SANCT, STAT_ACTIVE.

18 years ago(age_levels): Simplify country status check for leaking tech. Don't
Markus Armbruster [Sat, 7 Jan 2006 09:26:49 +0000 (09:26 +0000)]
(age_levels): Simplify country status check for leaking tech.  Don't
leak to countries in state STAT_NEW.

18 years ago(acce, rea, rela, snxtitem): Pass NULL as prompt when the prompt won't
Markus Armbruster [Fri, 6 Jan 2006 21:37:40 +0000 (21:37 +0000)]
(acce, rea, rela, snxtitem): Pass NULL as prompt when the prompt won't
be used.

18 years ago(edit): natarg() no longer supports access to unused countries. Do
Markus Armbruster [Fri, 6 Jan 2006 21:31:11 +0000 (21:31 +0000)]
(edit): natarg() no longer supports access to unused countries.  Do
it by hand.  Switch to natargp() while we're at it.

(docountry): Remove redundant parameter nat.

(prnat): Change parameter from natid to struct natstr.

18 years ago(natargp): Only return countries in use. Unused countries could lead
Markus Armbruster [Fri, 6 Jan 2006 21:16:49 +0000 (21:16 +0000)]
(natargp): Only return countries in use.  Unused countries could lead
to confusing output and were useless except perhaps for the edit
command.

18 years ago(acce): Use natargp() rather than natarg(), because acce() should not
Markus Armbruster [Fri, 6 Jan 2006 21:08:18 +0000 (21:08 +0000)]
(acce): Use natargp() rather than natarg(), because acce() should not
require contact.

(acce): Used to show only contacted active and deity countries, except
for #0.  Change to show all countries, to match current version of
reject.

18 years ago(reje): Do not require contact. Closes #890722.
Markus Armbruster [Fri, 6 Jan 2006 21:00:50 +0000 (21:00 +0000)]
(reje): Do not require contact.  Closes #890722.

18 years ago(nati): Use natargp() rather than natarg(), to avoid pointless
Markus Armbruster [Fri, 6 Jan 2006 20:46:31 +0000 (20:46 +0000)]
(nati): Use natargp() rather than natarg(), to avoid pointless
complaints about lack of contact.

(nati): Improve not-deity error message and change error code to
RET_FAIL.

18 years ago(new): Simplify using new natargp().
Markus Armbruster [Fri, 6 Jan 2006 20:36:53 +0000 (20:36 +0000)]
(new): Simplify using new natargp().

(new): Use RET_OK instead of literal 0.

(new, isok, ok): s_char purge.

18 years ago(natargp): New, factored out of natarg().
Markus Armbruster [Fri, 6 Jan 2006 20:27:17 +0000 (20:27 +0000)]
(natargp): New, factored out of natarg().

18 years ago(natarg): Use new cnumb() values to improve diagnostics.
Markus Armbruster [Fri, 6 Jan 2006 20:11:14 +0000 (20:11 +0000)]
(natarg): Use new cnumb() values to improve diagnostics.

18 years ago(status): src/lib/subs/mtch.c rev. 1.10 broke deity commands that
Markus Armbruster [Fri, 6 Jan 2006 20:07:13 +0000 (20:07 +0000)]
(status): src/lib/subs/mtch.c rev. 1.10 broke deity commands that
require CAP or MONEY.  Fix by setting them in ncomstat.

18 years ago(cnumb): Return the same error values as stmtch(). Callers don't
Markus Armbruster [Fri, 6 Jan 2006 19:42:27 +0000 (19:42 +0000)]
(cnumb): Return the same error values as stmtch().  Callers don't
(yet) care for the difference.

18 years ago(cnumb): Ignore countries not in use instead of countries with empty
Markus Armbruster [Fri, 6 Jan 2006 19:40:24 +0000 (19:40 +0000)]
(cnumb): Ignore countries not in use instead of countries with empty
names.  Clearer and safer.

18 years ago(set_target): Simplify using natarg().
Markus Armbruster [Fri, 6 Jan 2006 18:07:30 +0000 (18:07 +0000)]
(set_target): Simplify using natarg().

18 years ago(rejectname): Use static storage duration for rejects[].
Markus Armbruster [Fri, 6 Jan 2006 17:58:21 +0000 (17:58 +0000)]
(rejectname): Use static storage duration for rejects[].

18 years ago(tele): Fix prompting for telegram recipient.
Markus Armbruster [Fri, 6 Jan 2006 17:53:45 +0000 (17:53 +0000)]
(tele): Fix prompting for telegram recipient.

(tele): Spelling fix.

18 years agoClarify syntax.
Markus Armbruster [Fri, 6 Jan 2006 17:50:10 +0000 (17:50 +0000)]
Clarify syntax.

18 years ago(player_coms): Fix c_form for telegram.
Markus Armbruster [Fri, 6 Jan 2006 17:50:10 +0000 (17:50 +0000)]
(player_coms): Fix c_form for telegram.

18 years ago(natarg): No caller distinguishes between the two different failure
Markus Armbruster [Fri, 6 Jan 2006 17:47:45 +0000 (17:47 +0000)]
(natarg): No caller distinguishes between the two different failure
values.  Simplify to just one.

18 years ago(acce, flash, nati, new, rela): Don't bother to complain about bad
Markus Armbruster [Fri, 6 Jan 2006 17:44:31 +0000 (17:44 +0000)]
(acce, flash, nati, new, rela): Don't bother to complain about bad
country argument, natarg() does that.

(acce, flash, nati, rela): natarg() ensures getnatp() succeeds, no
need to check.

18 years ago(tele): Treat telegram to country not yet contacted as failure. This
Markus Armbruster [Fri, 6 Jan 2006 17:03:47 +0000 (17:03 +0000)]
(tele): Treat telegram to country not yet contacted as failure.  This
matches behavior of other commands.

18 years ago(natarg): Don't attempt to hide names of countries not yet contacted
Markus Armbruster [Fri, 6 Jan 2006 17:00:18 +0000 (17:00 +0000)]
(natarg): Don't attempt to hide names of countries not yet contacted
with HIDDEN.

(natarg): Clearer error messages.

18 years ago(nxtitemp): Use void * for generic pointer function value.
Markus Armbruster [Fri, 6 Jan 2006 16:55:17 +0000 (16:55 +0000)]
(nxtitemp): Use void * for generic pointer function value.

18 years ago(shar): Fix prompting for first argument.
Markus Armbruster [Fri, 6 Jan 2006 16:10:52 +0000 (16:10 +0000)]
(shar): Fix prompting for first argument.

18 years ago(check, tryprdiff): Rename. Remove parameter buf, just print.
Markus Armbruster [Fri, 6 Jan 2006 15:48:26 +0000 (15:48 +0000)]
(check, tryprdiff): Rename.  Remove parameter buf, just print.
Callers changed.

18 years ago(stats): Remove, simply pass around natstr * instead.
Markus Armbruster [Fri, 6 Jan 2006 15:34:37 +0000 (15:34 +0000)]
(stats): Remove, simply pass around natstr * instead.

(repo): Don't suppress part of the header if the report is empty and
HIDDEN is disabled.

(repo, repo_list): Concentrate decision whether to report on a country
in repo().

(repo_header): Simplify.

(repo_list): Remove redundant parameter cn.

(repo_list, printdiff): Move reporting on self from printdiff() to
repo_list().

(repo_list): Simplify.  Move research value one character to the right
for player->god, to match format of the report on self.

(printdiff): Remove redundant parameter ours.

18 years ago(set_target): Improve rejection message.
Markus Armbruster [Fri, 6 Jan 2006 14:20:03 +0000 (14:20 +0000)]
(set_target): Improve rejection message.

18 years ago(cede): Require recipient is in STAT_ACTIVE. Should not make a
Markus Armbruster [Fri, 6 Jan 2006 13:47:32 +0000 (13:47 +0000)]
(cede): Require recipient is in STAT_ACTIVE.  Should not make a
difference, because the recipient must have suitable assets nearby,
but is clearer.

18 years ago(mchrstr, lchrstr): Change element types of m_item[] and l_item[] to
Markus Armbruster [Thu, 5 Jan 2006 16:49:52 +0000 (16:49 +0000)]
(mchrstr, lchrstr): Change element types of m_item[] and l_item[] to
short, to match shp_item and lnd_item.
(mchr_ca, lchr_ca): Replace selector item by selectors for the items.
lchr_ca's item selector was incorrect and worked only by accident.

18 years ago(news): Used to silently ignore argument when HIDDEN is enabled.
Markus Armbruster [Thu, 5 Jan 2006 16:22:43 +0000 (16:22 +0000)]
(news): Used to silently ignore argument when HIDDEN is enabled.
Complain and fail instead.

(news): Treat non-numeric argument like zero, not like no argument,
for consistency with other commands.

18 years ago(output, translate_continents): When BLITZ is enabled, country numbers
Markus Armbruster [Thu, 5 Jan 2006 16:10:39 +0000 (16:10 +0000)]
(output, translate_continents): When BLITZ is enabled, country numbers
in the newcap script used to be permuted so that start islands are
ordered from top left to bottom right.  Undocumented, unobvious.
Deathtrap if a deity disables BLITZ after running fairland for a real
game.  Remove.

18 years ago(cens, cens_hdr): Column fall used to be shown only with FALLOUT.
Markus Armbruster [Thu, 5 Jan 2006 16:03:51 +0000 (16:03 +0000)]
(cens, cens_hdr): Column fall used to be shown only with FALLOUT.
Show it always.

18 years ago(show_nuke_build, show_nuke_capab): Column res used to be shown only
Markus Armbruster [Thu, 5 Jan 2006 15:45:08 +0000 (15:45 +0000)]
(show_nuke_build, show_nuke_capab): Column res used to be shown only
with DRNUKE.  Show it always.

18 years ago(repo_header, repo_list): HIDDEN used to suppress column status.
Markus Armbruster [Thu, 5 Jan 2006 15:36:49 +0000 (15:36 +0000)]
(repo_header, repo_list): HIDDEN used to suppress column status.
Don't; report status with less detail for HIDDEN instead, like the
country command.

18 years ago(rela) Relation columns were slightly wider for opt_SLOW_WAR. Use
Markus Armbruster [Thu, 5 Jan 2006 15:23:07 +0000 (15:23 +0000)]
(rela) Relation columns were slightly wider for opt_SLOW_WAR.  Use
wider columns unconditionally.

18 years agoUpdate for flattened info directory. checklist.pl no longer works.
Markus Armbruster [Thu, 5 Jan 2006 14:15:11 +0000 (14:15 +0000)]
Update for flattened info directory.  checklist.pl no longer works.

18 years ago(subjects.mk): Didn't work when info sources were deleted.
Markus Armbruster [Thu, 5 Jan 2006 14:13:56 +0000 (14:13 +0000)]
(subjects.mk): Didn't work when info sources were deleted.

18 years agoStreamline copyright notices. Clearly document Stephen Crane's in
Markus Armbruster [Thu, 5 Jan 2006 13:58:03 +0000 (13:58 +0000)]
Streamline copyright notices.  Clearly document Stephen Crane's in
README.

18 years agoSplit info.pl into findsubj.pl, mksubj.pl, mktop.pl.
Markus Armbruster [Thu, 5 Jan 2006 13:40:19 +0000 (13:40 +0000)]
Split info.pl into findsubj.pl, mksubj.pl, mktop.pl.

18 years agoUpdate copyright notice.
Markus Armbruster [Thu, 5 Jan 2006 13:36:57 +0000 (13:36 +0000)]
Update copyright notice.

18 years ago(EF_NATION_STATUS, nation_status): New.
Markus Armbruster [Wed, 4 Jan 2006 23:15:47 +0000 (23:15 +0000)]
(EF_NATION_STATUS, nation_status): New.
(empfile): Add it.
(nat_ca): Use it.

18 years agoFix the previous revision.
Markus Armbruster [Wed, 4 Jan 2006 23:11:44 +0000 (23:11 +0000)]
Fix the previous revision.

18 years agoChange nation status from bits to a simple enum:
Markus Armbruster [Wed, 4 Jan 2006 22:49:42 +0000 (22:49 +0000)]
Change nation status from bits to a simple enum:
(nat_status, STAT_UNUSED, STAT_VIS, STAT_ACTIVE): New.
(STAT_NEW, STAT_SANCT, STAT_GOD): Change into nat_status members.
(STAT_INUSE, STAT_NORM): Remove.
(natstr): Use new nat_status for nat_stat.
    New value       Old value
    STAT_UNUSED     0
    STAT_NEW        STAT_INUSE | STAT_NEW
    STAT_VIS        STAT_INUSE
    STAT_SANCT      STAT_INUSE | STAT_SANCT
    STAT_ACTIVE     STAT_INUSE | STAT_NORM
    STAT_GOD        STAT_INUSE | STAT_NORM | STAT_GOD
Users changed.

18 years ago(powe): Simplify.
Markus Armbruster [Wed, 4 Jan 2006 22:04:52 +0000 (22:04 +0000)]
(powe): Simplify.

18 years agoSome s_char killings.
Markus Armbruster [Wed, 4 Jan 2006 21:40:30 +0000 (21:40 +0000)]
Some s_char killings.

18 years ago(docountry): Telex country on nat_reserve editing unconditionally.
Markus Armbruster [Wed, 4 Jan 2006 21:25:23 +0000 (21:25 +0000)]
(docountry): Telex country on nat_reserve editing unconditionally.
The condition was never true due to a coding mistake.  Other edits
don't have such conditions.

18 years ago(comtch): Parameter god permitted execution of any command, even when
Markus Armbruster [Wed, 4 Jan 2006 19:12:44 +0000 (19:12 +0000)]
(comtch): Parameter god permitted execution of any command, even when
com->c_permit disagreed.  Doesn't make sense and is inconsistent with
output of list.  Remove parameter.  The only command affected is
break.

18 years ago(explain): Part of the argument explanation was suppressed under a
Markus Armbruster [Wed, 4 Jan 2006 18:45:42 +0000 (18:45 +0000)]
(explain): Part of the argument explanation was suppressed under a
weird condition (visitor or sanctuary, neither money nor capital).
Don't.

18 years ago(update_removewants): Clearing WUPD_WANT trashed all the other bits.
Markus Armbruster [Wed, 4 Jan 2006 18:28:50 +0000 (18:28 +0000)]
(update_removewants): Clearing WUPD_WANT trashed all the other bits.
They are currently unused.

18 years ago(status): Enforce m_m_p_d only for active countries, not for deities,
Markus Armbruster [Wed, 4 Jan 2006 17:58:16 +0000 (17:58 +0000)]
(status): Enforce m_m_p_d only for active countries, not for deities,
visitors and such.

18 years ago(demand_check): Slight simplification.
Markus Armbruster [Wed, 4 Jan 2006 16:48:43 +0000 (16:48 +0000)]
(demand_check): Slight simplification.

18 years ago(orig): Allow moving origin to another country's origin. This is a
Markus Armbruster [Wed, 4 Jan 2006 14:36:21 +0000 (14:36 +0000)]
(orig): Allow moving origin to another country's origin.  This is a
superset of the offset command.
(offs): Redundant, underdocumented, remove.

(orig): Allow deities to reset origin to absolute 0,0.

18 years ago(STAT_ABS): Only set by files program for country #0. Prevents offset
Markus Armbruster [Wed, 4 Jan 2006 14:27:10 +0000 (14:27 +0000)]
(STAT_ABS): Only set by files program for country #0.  Prevents offset
and origin commands from working.  Remove.

18 years ago(termio) [_WIN32]: Add a variable (record) to match the pointer type
Ron Koenderink [Wed, 4 Jan 2006 03:30:04 +0000 (03:30 +0000)]
(termio) [_WIN32]: Add a variable (record) to match the pointer type
for console functions.  Add error checks for console functions.

18 years agoFix the previous revision.
Markus Armbruster [Tue, 3 Jan 2006 19:07:53 +0000 (19:07 +0000)]
Fix the previous revision.

18 years ago(xdvisible): New.
Markus Armbruster [Tue, 3 Jan 2006 17:07:41 +0000 (17:07 +0000)]
(xdvisible): New.
(xditem): Use it.  This plugs all known information leaks.  It also
avoids dumping of unused records.

18 years ago(main) [_WIN32]: Fix logerror format to "lu" for GetLastError().
Ron Koenderink [Sun, 1 Jan 2006 20:43:37 +0000 (20:43 +0000)]
(main) [_WIN32]: Fix logerror format to "lu" for GetLastError().

18 years ago(service_ctrl_handler) [_WIN32]: Add static declaration.
Ron Koenderink [Sun, 1 Jan 2006 20:41:45 +0000 (20:41 +0000)]
(service_ctrl_handler) [_WIN32]: Add static declaration.
Fix logerror format to "lu" for GetLastError().

18 years ago(tcp_listen) [_WIN32]: Move the undef NS_ALL to after include winsock2.h.
Ron Koenderink [Sun, 1 Jan 2006 20:38:21 +0000 (20:38 +0000)]
(tcp_listen) [_WIN32]: Move the undef NS_ALL to after include winsock2.h.
The undef is present to prevent namespace conflict the selector code.

18 years ago(tcp_listen) [_WIN32]: Add the WIN32 include files for accessing
Ron Koenderink [Sun, 1 Jan 2006 20:27:24 +0000 (20:27 +0000)]
(tcp_listen) [_WIN32]: Add the WIN32 include files for accessing
the socket functions.

(tcp_listen): Add prototypes.h to verify the extern prototype.

18 years ago(loc_RunThisThread, loc_BlockThisThread) [_WIN32]:
Ron Koenderink [Sun, 1 Jan 2006 20:23:51 +0000 (20:23 +0000)]
(loc_RunThisThread, loc_BlockThisThread) [_WIN32]:
Add void to parameter declarations.

(empth_threadMain) [_WIN32]: Add static declaration for the function.

(empth_init) [_WIN32]: Change the format "lu" for GetLastError()
in logerror() calls.

18 years ago(ioq_makebuf, ioq_makeiov) [_WIN32]: Remove the external for
Ron Koenderink [Sun, 1 Jan 2006 20:02:09 +0000 (20:02 +0000)]
(ioq_makebuf, ioq_makeiov) [_WIN32]: Remove the external for
ioq_makeiov() for WIN32 case so it matches source for the
ioq_makeiov().  Reorganize ioq_makebuf() to make it obvious that
ioq_makebuf() is used for WIN32 and everybody uses ioq_makeiov().

18 years ago(info) [_WIN32]: Add brackets to ensure the right combination of
Ron Koenderink [Sun, 1 Jan 2006 19:55:53 +0000 (19:55 +0000)]
(info) [_WIN32]: Add brackets to ensure the right combination of
ORs and ANDs.

(apro) [_WIN32]: Remove space to fix formatting for logerror().
Fix printing type for lhitlim in the format string for logerror() call.