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.
(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.
(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.
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.
(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.
(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.