(realm_ca): Remove selector uid. It's not useful for players, and not
needed for xdump, because it doesn't occur as ca_table.
(lost_ca): Remove selector uid. Reasons as for realm_ca. The value
is incorrect in unused records, which is semantically tolerable, but
needlessly complicated to check in ef_verify.c.
(news_ca): Remove selector uid. Reasons as for realm_ca, plus the
value is incorrect, because nws_uid is not used.
When sources.mk is needed to find directories, don't test whether it's
there, just use it. If it's not there, things will fail down the
road. Better to fail early.
Ron Koenderink [Sun, 5 Feb 2006 17:37:58 +0000 (17:37 +0000)]
(vers): Add collateral damage matrix to version report.
Add unit_damage and collateral_dam to the collateral damage matrix.
Move people_damage into matrix.
Ron Koenderink [Sun, 5 Feb 2006 15:52:26 +0000 (15:52 +0000)]
(vers): Add the following the configuration values to the version report:
torpedo_damage, flakscale, people_damage, assault_penalty,
decay_per_etu, fallout_spread, fuel_mult, max_btus and max_idle.
Ron Koenderink [Thu, 2 Feb 2006 13:20:14 +0000 (13:20 +0000)]
(vers): Add the following econfig values to version report:
MARK_DELAY, TRADE_DELAY, mission_mob_cost ,
money_ship, money_plane, money_land,
fort_max_interdiction_range, ship_max_interdiction_range,
land_max_interdiction_range, combat_mob and
sect_mob_neg_factor.
Ron Koenderink [Mon, 30 Jan 2006 22:23:43 +0000 (22:23 +0000)]
Properly parse and validate column headers:
(enum_value, value, xuflds, freeflds): Parse additional syntax:
numeric and symbolic index.
(xucolumnheader): Use it to parse column header line. Check names
and indexes match meta-data. Symbolic indexes not yet implemented.
(xuloadrow): Reject the additional syntax.
Ron Koenderink [Sun, 29 Jan 2006 13:56:35 +0000 (13:56 +0000)]
(ac_dog): Do not use 'ap' as a pointer to get the owner
for the call to ac_planedamage() use att_own instead.
'ap' may have been already freed in the previous call
to ac_planedamage(). This can create an invalid
news item and crash the server.
(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.
Ron Koenderink [Sat, 21 Jan 2006 20:56:50 +0000 (20:56 +0000)]
(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.
Rewrite top-level README for new build process. Merge information
from LEGAL, remove that file. References to it were already removed
in the previous change set. Remove obsolete doc/compiling and
doc/disk_space.
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.
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.
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.
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.
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.
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.
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.
(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.