2e40a4bb90
Change nuke storage and commands to match other units:
...
(nukstr): Hold one nuke instead of a stockpile: replace members nuk_n,
nuk_types by nuk_type, nuk_plane. Add nuk_land for completeness, like
nuk_ship it's not yet used.
(nuke_ca): Update accordingly: replace selectors number and types by
type and plane.
(build_nuke): Update accordingly.
(ndump, nuke): Update accordingly. Output is no longer sorted by
location, and nukes in same location no longer share id. nuke's extra
columns for nuclear plants are repeated for every nuke.
(trade_desc): Update accordingly.
(cede, grab_sect, check_nuke_ok, detonate, trade_nameof): Talk about
nukes instead of nuclear stockpiles.
(arm, disarm): Rewrite, split off new disarm(). Don't remove nuke
from the nuke file on arm. Allow usual plane syntax, not just plane
number. Change second argument from nuke type to nuke number. When
plane is already armed, ignore nuke argument and rearm (broken in
4.2.6).
(tran_nuke): Update for changed struct nukstr, make as similar as
possible to tran_plane. Change syntax to match transport plane.
(player_coms): Update arm, disarm and transport accordingly.
(prnuke, nuk_on_plane): New.
(nuk_add, nuk_delete): Stockpile management, remove.
2006-05-06 07:20:21 +00:00
7ed308526c
Remove redundant casts of argument to (prototyped) double parameter.
2006-05-01 12:34:16 +00:00
898c74a80f
(get_couval, get_outstand): Remove. Unused since automatic loans were
...
removed (buy.c rev. 1.18, trad.c rev. 1.15), should have been removed
then.
2006-04-30 18:20:23 +00:00
ba74075e9a
Fix the previous revision.
2006-04-30 16:18:35 +00:00
384555b811
(pln_arm): Change parameter mission from int to char to clearly
...
document its use.
2006-04-30 16:15:33 +00:00
a292d6f98a
Fix insufficiently parenthesized macro expansions.
2006-04-30 16:08:45 +00:00
8cb55944a3
(TERR_MAX): New.
...
(terr): Use it.
(terr): When the territory number is bad, do not loop prompting, just
fail. That's what the vast majority of commands do.
2006-04-30 12:56:41 +00:00
e09e6e587b
Normalize long int and short int to just long and short.
2006-04-30 12:05:23 +00:00
95de3bccbb
Doc fix.
2006-04-30 08:31:52 +00:00
9cf1713892
(lnd_mess): Internal linkage.
2006-04-30 08:29:18 +00:00
0c8c169f88
(s_char): Remove. Use signed char for small integers, plain char for
...
characters.
2006-04-29 16:25:17 +00:00
a988b907fc
s_char purge directed by compiler warnings.
2006-04-29 06:41:45 +00:00
422d8e517f
(snxtitem): s_char purge.
2006-04-24 18:27:31 +00:00
ca595ddc3b
Fix char / s_char inconsistencies. Build was broken on some systems
...
since the first one crept in with src/lib/subs/retreat.c rev. 1.34.
2006-04-24 18:24:23 +00:00
da6306b8b0
Fix missing include. Closes #1464069 .
2006-04-20 18:39:57 +00:00
6fee3f4535
(CANT_REACH): New. Use it instead of CANT_HAPPEN() where possible.
...
(oops): Cope with NULL argument passed by CANT_REACH().
2006-04-17 17:36:07 +00:00
e264be1a78
(XYOFFSET): Parenthesize macro parameters in expansion.
2006-04-17 12:51:23 +00:00
75eec5e0e3
Comment grammar fix.
2006-04-05 18:34:54 +00:00
6fdac645ba
(bestownedpath, owned_and_navigable): Terrain parameter isn't really
...
used, remove it. Use null bigmap argument to ignore terrain (flying),
non-null for navigation. Callers changed.
2006-04-05 09:50:45 +00:00
b923c951ed
(P_NONE, P_WALKING, P_FLYING, P_SAILING, p_mode): Turn into new
...
enumeration p_mode. Users changed. s_char and register purge.
2006-04-05 07:21:49 +00:00
7d5a6b817e
(iop): Remove unused members assoc, notify.
...
(io_open): Remove unused parameters assoc, notify. Caller changed.
2006-03-29 19:19:47 +00:00
9847e27a2f
(genlist): Move from include/mission.h to src/lib/subs/mission.c.
...
(genlist): Remove unused members x, y.
(genlist): Use void * for generic pointer members cp, thing. Change
users not to cast.
(oprange): Oops on bad argument.
2006-03-29 07:53:25 +00:00
a1ce7db238
(move_ground): Drop first parameter of map callback, it's not used.
...
Callers changed. s_char purge.
2006-03-28 19:46:40 +00:00
9f658368b8
(MINE_LDAMAGE): Change to match damage suffered in lnd_hit_mine().
...
This increases damage suffered in retreat. Fix info Damage.
(shp_hit_mine): Use MINE_DAMAGE().
(lnd_hit_mine): Use MINE_LDAMAGE().
2006-03-27 21:47:50 +00:00
8ca2468706
(gift): Fix parameter types: natid instead of int, void * for generic
...
pointer, char * for string.
2006-03-26 08:18:34 +00:00
38f3f7ea49
(trade_check_item_ok): New.
...
(trade_check_ok): Use it and simplify.
(set): Use new trade_check_item_ok(). The code replaced by it didn't
work (abusable bug).
2006-03-25 15:26:29 +00:00
79714720cc
(ontradingblock, trdswitchown): Second parameter is a generic pointer,
...
change it from int * to void *. Callers changed not to cast to int *.
2006-03-25 15:11:17 +00:00
05f64e8c3f
(genstr): Redundant. Replace by struct genitem.
2006-03-25 15:03:32 +00:00
ba11aaaa36
(empth_create): LWP yields, and it's the reference implementation.
...
Document and fix the others.
2006-03-25 07:49:37 +00:00
8054aafb9a
(u_char, u_short, u_int): BSDisms. Figuring out whether sys/types.h
...
defines them would be possible, but isn't worth the trouble. Replace
by unabbreviated types.
2006-03-25 07:05:34 +00:00
3c5e8a0b46
Doc fix.
2006-03-01 07:21:14 +00:00
f5a9284867
Update known contributors comment.
2006-02-24 21:35:27 +00:00
198fad473e
Rework obsolete comment on hours file, an move it where it belongs:
...
next to variable definitions and into econfig doc strings.
2006-02-24 18:33:58 +00:00
38fdf1ba43
(config_tables, custom_tables, read_config_tables, read_custom_tables)
...
(read_config_table_file, read_custom_table_file): Rename.
2006-02-23 18:31:23 +00:00
99a1450c98
(EFF_CUSTOM): New.
...
(read_config_table_file): Set it.
(show_custom): Show it.
(vers): Use it.
2006-02-23 08:37:46 +00:00
3700e33494
Document unused member.
2006-02-23 07:23:52 +00:00
6b5aa6b556
Doc improvement.
2006-02-22 21:12:20 +00:00
02ddee69fb
(banfil, authfil): Remove. Matching user is useless, because the
...
player can send whatever he wants. Banning IPs is better done with a
packet filter. That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.
2006-02-22 20:57:51 +00:00
504305357d
(player): Rename member validated to authenticated.
2006-02-22 19:20:41 +00:00
783b00bbad
(ichrstr): Rename member i_vtype to i_uid.
...
(ichr_ca): Rename selector vtype to uid.
2006-02-20 05:35:58 +00:00
b43d43392a
Document interpretation of relative file names.
2006-02-19 18:33:02 +00:00
53a564d474
(lndchr): Document that members l_gun and l_shell are unused.
...
(lchr_ca): Remove selectors g_build and s_build. Update land.config.
2006-02-19 18:30:13 +00:00
c596577d32
(mchrstr, plchrstr, lchrstr, nchrstr): New member m_type, pl_type,
...
l_type, n_type.
(mchr_ca, plchr_ca, lchr_ca, nchr_ca): New selector type. Update
builtin config files.
2006-02-19 09:47:26 +00:00
dae17432ae
(lndchr): Rename member l_mxland to l_nland for consistency with
...
similar unit characteristics.
2006-02-19 07:32:03 +00:00
9a30f30107
(builtindir): New econfig key, variable and make variable.
...
(subst.in): Substitute it. Fix prerequisites.
(read_builtin_tables): New.
(main): Call it. This doesn't do anything, because no builtin tables
have been defined.
2006-02-19 07:04:30 +00:00
fd461e7bf5
(empfile, SYMTAB): Reorder so that symbol tables are together. Sort
...
them alphabetically. Factor out commonalities into new SYMTAB(). No
functional changes.
2006-02-18 15:02:18 +00:00
bd65a84eb5
New way to read configuration tables:
...
(config_tables): New econfig key.
(read_config_tables): New, implements config_tables.
(main): Call it. Need to call ef_init() and chdir(configdir) first.
(ef_init_srv): Don't call ef_init(), since main() did it already.
Remove old way to do the same:
(ef_load): Remove, along with calls.
(empfile): Set configuration tables' member file back to NULL.
2006-02-18 13:57:52 +00:00
e4865d473e
(configdir): New, to be used for loading configuration tables.
...
(emp_config): Set it to econfig's directory.
2006-02-18 12:43:17 +00:00
376d87c3a0
(main): Don't use access() before mkdir() to check whether the
...
directory to be created exists, just check errno afterwards.
[_WIN32] (F_OK, W_OK, R_OK): Unused, remove.
2006-02-18 09:29:49 +00:00
5282f500b5
(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
...
output variable datadir and with configuration data.
2006-02-18 09:16:50 +00:00