Commit graph

2164 commits

Author SHA1 Message Date
35941f97eb (new): Simplify using new natargp().
(new): Use RET_OK instead of literal 0.

(new, isok, ok): s_char purge.
2006-01-06 20:36:53 +00:00
402c47b66e (natargp): New, factored out of natarg(). 2006-01-06 20:27:17 +00:00
ba554cbb1f (natarg): Use new cnumb() values to improve diagnostics. 2006-01-06 20:11:14 +00:00
87aa405823 (status): src/lib/subs/mtch.c rev. 1.10 broke deity commands that
require CAP or MONEY.  Fix by setting them in ncomstat.
2006-01-06 20:07:13 +00:00
ffa21cf379 (cnumb): Return the same error values as stmtch(). Callers don't
(yet) care for the difference.
2006-01-06 19:42:27 +00:00
c949d84774 (cnumb): Ignore countries not in use instead of countries with empty
names.  Clearer and safer.
2006-01-06 19:40:24 +00:00
d21d7a0230 (set_target): Simplify using natarg(). 2006-01-06 18:07:30 +00:00
c791849595 (rejectname): Use static storage duration for rejects[]. 2006-01-06 17:58:21 +00:00
8a8fad04a4 (tele): Fix prompting for telegram recipient.
(tele): Spelling fix.
2006-01-06 17:53:45 +00:00
4f3007c6a7 Clarify syntax. 2006-01-06 17:50:10 +00:00
a9f96eaaaf (player_coms): Fix c_form for telegram. 2006-01-06 17:50:10 +00:00
1ab98751cd (natarg): No caller distinguishes between the two different failure
values.  Simplify to just one.
2006-01-06 17:47:45 +00:00
011f88fec8 (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.
2006-01-06 17:44:31 +00:00
e3443c78eb (tele): Treat telegram to country not yet contacted as failure. This
matches behavior of other commands.
2006-01-06 17:03:47 +00:00
6a5d398c6d (natarg): Don't attempt to hide names of countries not yet contacted
with HIDDEN.

(natarg): Clearer error messages.
2006-01-06 17:00:18 +00:00
8e5d576fff (nxtitemp): Use void * for generic pointer function value. 2006-01-06 16:55:17 +00:00
e66d0bfb83 (shar): Fix prompting for first argument. 2006-01-06 16:10:52 +00:00
7b7608d5ca (check, tryprdiff): Rename. Remove parameter buf, just print.
Callers changed.
2006-01-06 15:48:26 +00:00
53c3101e77 (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.
2006-01-06 15:34:37 +00:00
57808ef10c (set_target): Improve rejection message. 2006-01-06 14:20:03 +00:00
8d578153c7 (cede): Require recipient is in STAT_ACTIVE. Should not make a
difference, because the recipient must have suitable assets nearby,
but is clearer.
2006-01-06 13:47:32 +00:00
b94b3b1b7f (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.
2006-01-05 16:49:52 +00:00
f6987ca3ef (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.
2006-01-05 16:22:43 +00:00
c6979cb0e0 (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.
2006-01-05 16:10:39 +00:00
7b6fbbc3d2 (cens, cens_hdr): Column fall used to be shown only with FALLOUT.
Show it always.
2006-01-05 16:03:51 +00:00
cb7c9008c8 (show_nuke_build, show_nuke_capab): Column res used to be shown only
with DRNUKE.  Show it always.
2006-01-05 15:45:08 +00:00
e5f9175394 (repo_header, repo_list): HIDDEN used to suppress column status.
Don't; report status with less detail for HIDDEN instead, like the
country command.
2006-01-05 15:36:49 +00:00
60680a6a2e (rela) Relation columns were slightly wider for opt_SLOW_WAR. Use
wider columns unconditionally.
2006-01-05 15:23:07 +00:00
56d9445d76 Update for flattened info directory. checklist.pl no longer works. 2006-01-05 14:15:11 +00:00
5064c5425f (subjects.mk): Didn't work when info sources were deleted. 2006-01-05 14:13:56 +00:00
2aea9269b9 Streamline copyright notices. Clearly document Stephen Crane's in
README.
2006-01-05 13:58:03 +00:00
2f14064a25 Split info.pl into findsubj.pl, mksubj.pl, mktop.pl. 2006-01-05 13:40:19 +00:00
3e400c018c Update copyright notice. 2006-01-05 13:36:57 +00:00
a5c87a2b54 (EF_NATION_STATUS, nation_status): New.
(empfile): Add it.
(nat_ca): Use it.
2006-01-04 23:15:47 +00:00
6e6cd67bd8 Fix the previous revision. 2006-01-04 23:11:44 +00:00
8b16c31223 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.
2006-01-04 22:49:42 +00:00
41c2c27376 (powe): Simplify. 2006-01-04 22:04:52 +00:00
bea83adb93 Some s_char killings. 2006-01-04 21:40:30 +00:00
78dd01ab8e (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.
2006-01-04 21:25:23 +00:00
8329b8884a (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.
2006-01-04 19:12:44 +00:00
0b037fc23c (explain): Part of the argument explanation was suppressed under a
weird condition (visitor or sanctuary, neither money nor capital).
Don't.
2006-01-04 18:45:42 +00:00
2e64ebbb3a (update_removewants): Clearing WUPD_WANT trashed all the other bits.
They are currently unused.
2006-01-04 18:28:50 +00:00
85bb851c04 (status): Enforce m_m_p_d only for active countries, not for deities,
visitors and such.
2006-01-04 17:58:16 +00:00
c53472e2f2 (demand_check): Slight simplification. 2006-01-04 16:48:43 +00:00
b69173eea4 (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.
2006-01-04 14:36:21 +00:00
c13a592bf5 (STAT_ABS): Only set by files program for country #0. Prevents offset
and origin commands from working.  Remove.
2006-01-04 14:27:10 +00:00
Ron Koenderink
4abeea5de9 (termio) [_WIN32]: Add a variable (record) to match the pointer type
for console functions.  Add error checks for console functions.
2006-01-04 03:30:04 +00:00
9101fe2bd9 Fix the previous revision. 2006-01-03 19:07:53 +00:00
de8aea7a0f (xdvisible): New.
(xditem): Use it.  This plugs all known information leaks.  It also
avoids dumping of unused records.
2006-01-03 17:07:41 +00:00
Ron Koenderink
6245d97358 (main) [_WIN32]: Fix logerror format to "lu" for GetLastError(). 2006-01-01 20:43:37 +00:00