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
Ron Koenderink
b7d0b66161
(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
...
(show_nuke_capab, vers, xdvisible, build.t, Options.t):
Remove opt_DRNUKE and replace with the following check
drnuke_const > MIN_DRNUKE_CONST.
Set MIN_DRNUKE_CONST to 0.001 to prevent issues with tiny values.
Change the default drnuke_const to 0.0 because in the stock game
opt_DRNUKE was disabled.
2006-02-16 02:14:08 +00:00
94fb350e40
Change dchrstr member d_mnem to char.
2006-02-12 13:56:12 +00:00
94ef2f4275
Change ichrstr member i_mnen to char.
2006-02-11 07:41:34 +00:00
2dcf1fd1c8
(MIN, MAX): Fix insufficiently parenthesized macro expansion.
2006-02-06 21:56:38 +00:00
a507f5a54c
Doc fix.
2006-02-05 17:43:00 +00:00
Ron Koenderink
59c8e97797
(configkeys): Make pre_update_hook and start_cash KM_INTERNAL.
2006-02-04 21:04:25 +00:00
Ron Koenderink
3db7e6201f
(powe_cost): Remove powe_cost and replace with a fixed cost of 10.
2006-02-04 19:36:51 +00:00
Ron Koenderink
7b9fdf8b95
(show_news, news, empfile[], page_headings[], page_headings_symbols[]):
...
Change page_headings[] to struct symbol and removed
page_headings_symbols[].
2006-01-30 22:26:48 +00:00
Ron Koenderink
f438b74e85
(EF_PAGE_HEADINGS, page_headings_symbols, M_NOTUSED): New.
...
(empfile): Add it.
(rpt_ca): Use it.
2006-01-29 18:40:11 +00:00
Ron Koenderink
1bca66c061
(show_news): New.
...
(show): Use it to implement show news.
2006-01-29 17:44:29 +00:00
5109a30910
(vers): Don't report KSU distribution (1.04 in all known versions),
...
Chainsaw version (4.00 since Empire 2, ca. 1995) and Wolfpack version
(used to be the version number after the first dot).
(KSU_DIST, CHAINSAW_DIST, WOLFPACK_DIST): Unused, remove.
(version): New.
(EMP_VERS_MAJOR, EMP_VERS_MINOR, EMP_VERS_PATCH): Remove. Users
changed to use version[] instead. version[] is slightly easier to
initialize from configure.ac.
(check-version): No longer needed, remove.
(legal): New.
(vers, main): Show it.
2006-01-27 17:59:06 +00:00
Ron Koenderink
fee6c50b1a
(show, show_item): Resurrect show item.
2006-01-22 18:57:14 +00:00
Ron Koenderink
74e4e2810a
(fuel, load, shp_check_nav, retreat_ship1, shp_nav_one_sector)
...
(shp_check_nav, sail_nav_fleet, bigcity_dchr[], sector_navigation[])
(d_navigation): Add a NEW d_navigation enum NAV_CANAL to
indicate that a sector has canal capability. Add canal determination
logic to shp_check_nav(). Update sector_navigation[] with new
canal navigation enum. Use shp_check_nav() to determine the
sector can be navigated.
2006-01-21 20:56:50 +00:00
35bbd59288
Documentation.
2006-01-21 20:08:42 +00:00
4515b84c59
COPYING duplicates information from README. Remove. Move GPL from
...
LICENSE to COPYING, because that's where it usually is. Update all
the references to these files.
2006-01-21 19:48:41 +00:00
Ron Koenderink
14d94c2509
(sect_has_dock): New.
...
(fuel, load, nav_loadship): Use it.
2006-01-17 23:38:51 +00:00