]> git.pond.sub.org Git - empserver/blob - doc/CHANGES4.X
Update change log again for 4.3.14
[empserver] / doc / CHANGES4.X
1 Changes to Empire 4.3.14 - Mon May  5 04:57:03 UTC 2008
2  * Another round of fixes to the fire command:
3    - Don't disclose where the target retreated to.
4    - Charge the target shells for returning fire.
5    - Always use guns when the target is out of range, even if it's a
6      submarine.  Before, the difference in shell use disclosed whether
7      the target is a submarine.  Loophole opened in 4.3.12.
8    - Make depth charges again work with just one shell.  Failing the
9      command in that case lets players find out whether the target is
10      a submarine.  Loophole opened in 4.3.12.
11    - Detect when the firing sector, ship or land unit changes across
12      the target prompt.  Abusable.
13  * Fix parsing of anchor-relative time in update schedule.  Broken in
14    4.3.13.
15  * Fix logging of player input in the journal to include command
16    interruption and EOF.
17  * Fix oversights in 4.3.12's change to keep track of flying planes:
18    planes could be erroneously reported damaged by their own ground
19    strikes.  Happened with missions and the launch command.
20  * Fix load not load hardened missiles.
21  * Fix harden not to harden missiles loaded on land units.
22  * New server option -E to choose what to do on recoverable internal
23    error.  You can now make the server dump core and keep going (not
24    implemented for Windows).  New econfig key post_crash_dump_hook to
25    run a program after crash-dumping.  See scripts/savecore for an
26    example.
27  * Journal entries are now flushed to disk right away even when the
28    server is not running in debug mode.
29  * Don't let land units load trains.
30  * Allow deity to display power report for all types of countries,
31    with power c.
32  * Fix designate's check for disallowed sector types.  Broken in
33    4.3.12.
34  * Documentation fixes.
35
36 Changes to Empire 4.3.13 - Tue Apr 15 19:03:11 UTC 2008
37  * Work around strptime() lossage on some systems.  Fixes the parsing
38    of the schedule file there.
39  * New selector maxnoc for xdump version.
40  * Fix initialization of realms in newcap.  Broken in 4.3.12.
41  * Fix add for status arguments active, god, delete.  Broken in
42    4.3.12.
43  * Info file, manual page and documentation fixes.
44
45 Changes to Empire 4.3.12 - Wed Apr  2 05:35:06 UTC 2008
46  * Fix rounding error in update that could result in more babies than
47    food permits, and negative food.
48  * Fix a bug that could lead to unfair thread scheduling under
49    Windows.
50  * Fix ship and land unit missile interdiction and ballistic missile
51    interception to require a proper base.  Before, missiles could
52    launch from anywhere for that.
53  * Launch bug fixes:
54    - Don't allow launching from unowned sectors.
55    - Don't destroy missiles stuck on foreign ships.
56    - Use up the supplies required for launching an asat only when it
57      actually launches.
58    - Don't ignore satellites' fuel use.
59  * Deity command newcap now requires its second argument (sanctuary
60    coordinates).  Before, it tried to pick a suitable location when
61    none was given.  The code implementing this feature had problems,
62    and it's not worth fixing, because it is obscure, and rarely (if
63    ever) used: no conscientious deity would use it for a real game,
64    and for blitzes fairland does a better job.
65  * Keep track of flying planes properly.  This fixes a number of bugs:
66    - While the bomb command awaited pin-bombing target input from the
67      player, other players could interact with the pin-bombers and
68      escorts as if they were sitting in their bases: spy them, damage,
69      capture, load, unload, or upgrade them, even get intercepted by
70      them.  But any changes to those planes were wiped out when they
71      landed.  Abusable.
72    - The bomb command could bomb its own escorts, directly (pin-bomb
73      planes) or through collateral damage, strategic sector damage,
74      collapsing bridges or nuke damage.  The damage to the escorts was
75      wiped out when they landed.
76    - If you asked for a plane to fly both in the primary mission and
77      escort, you got charged fuel for two sorties instead of one.
78  * Plug memory leaks in plane interception.
79  * Fix trade not to let the buyer teleport satellites (not in orbit)
80    and asats to an arbitrary sector.  Abusable, because abms
81    intercepted from anywhere, and satellites could be launched from
82    unowned sectors.
83  * The PRNG seed is now logged in the journal.
84  * Fix nightly build for Windows.
85  * Fix crash bug that bit when custom tables contained columns names
86    that existed, but weren't supposed to be in the custom table.
87  * New timestamp selector for commodity, country, game, loan, nation,
88    news, realm, trade, treaty to support incremental xdump.
89  * Deity commands newcap and add wipe the nation more thoroughly.  add
90    no longer touches relations and flags for status active and god.
91  * New utility program empdump to export and import game state as
92    plain text.  Check its manual for details, including limitations.
93  * Plane, ship and land unit stats are no longer stored as game state,
94    but recomputed from tech and base stats as needed.
95  * xdump ver is no longer a special case.  Syntax "xdump ver" is now
96    deprecated.  Use "xdump version *".
97  * Fire and torpedo cleanup and bug hunt:
98    - Plug memory leak in fire command.
99    - Fix ammunition use when returning fire: resupply could lose
100      shells when returning fire to multiple targets, and land units
101      were charged per target instead of just once.
102    - torpedo and fire no longer resupply shells automatically.  The
103      latter used to resupply land units only.
104    - Land units no longer have to be in supply to fire actively, for
105      consistency with other ways to fire.
106    - Submarines with zero mobility can no longer interdict, for
107      consistency with other ways to torpedo.
108    - Fix bugs that let submarines without capability torp use
109      torpedoes to return fire and interdict.
110    - Fix torpedo command not to require a line of sight for return
111      fire and depth charges, and to use torpedo range instead of
112      firing range for return torpedoes.
113    - Active fire and interdiction didn't work for ships with zero
114      firing range, even though return fire and support did.  No such
115      ships exist in the stock game.
116    - Let land units with zero firing range and non-zero firing damage
117      fire, for consistency with ships.  No such units exist in the
118      stock game.
119    - Ships required different numbers of military to operate their
120      guns for the various kinds of fire.  Unify to require 2*N-1
121      military to fire N guns.
122    - Ship ammunition use differed for the various kinds of fire.
123      Unify to use one shell per two guns.
124    - Forts could fire support even when there were not enough mil.
125    - Fix automatic shell resupply in several places to supply exactly
126      the shells actually fired, no more, no less.
127  * Change depth charges back to how they are documented and worked
128    before 4.0.6, mostly: require no guns, one military, do damage like
129    shell fire from three guns (before 4.0.6: two guns), use two
130    shells.  In 4.0.6's model, they worked exactly like shell fire
131    (require guns and gun crew, non-zero firing range, damage and
132    ammunition use scales with available guns), except for missions,
133    which was a bug.  Note that depth charge damage for all ships is
134    now like fire from three guns for two shells.  No change for dd; af
135    did two gun damage for one shell before, and nas did four gun
136    damage for two shells.
137  * The edit command keys deprecated in 4.3.3 are now gone.
138  * Fix build not to screw up automatic dependencies on certain compile
139    errors.
140  * Fix a bug that could prevent repeated news from properly
141    aggregating into one news item.
142  * Properly initialize all bits in game state files, even those that
143    aren't used.
144  * Fix explore's test for stopping on a splashed bridge.  The bug made
145    explore print to a bogus message.
146  * Fix spelling of symbol airburst in table plane-flags.  This could
147    affect clients.
148  * Change designate not to check total cost before executing the
149    redesignation.  The code implementing that was buggy and too ugly
150    to live.  Designate doesn't cost anything in the stock game.
151  * Always charge land units at least as much mobility for assaulting
152    from non-landing ships as from landing ships.  Before, marines lost
153    all mobility when assaulting from a non-landing ship, which could
154    be less than what the same assault costs from a landing ship (half
155    an update's worth).
156  * Fix LWP's stack initialization for -s.  It caused crashes on some
157    systems.
158  * Fix confused and buggy bridge splashing code:
159    - Flying planes could be reported drowned.
160    - Pin-bombing a bridge head failed to collapse bridge spans for
161      lack of support, unless the pin-bombing caused collateral damage.
162    - Corrupt sector file could lead to infinite recursion.
163  * Relative names now work for econfig keys data and info.
164  * Fix utility programs to abort on internal errors.  They used to
165    print a message and attempt to recover.
166  * Fix off-by-one in fairland that ate the last expansion island.
167  * Switch from CVS to git.
168  * Code refactoring and cleanup.
169  * Portability fixes.
170  * Info file, manual page and documentation fixes and updates.
171
172 Changes to Empire 4.3.11 - Tue Jan  1 18:57:38 UTC 2008
173  * New sector selector elev.  It's set by fairland, but has no effect
174    on the game.  It can be useful for deities to customize a world
175    created by fairland.
176  * The client now copes with ids greater than 15.  The Empire
177    protocol currently uses 14 ids.
178  * Rewrite the client's code to read server output during login.  The
179    old code could write one byte beyond the end of the buffer
180    (theoretically a remote hole), got confused by long lines, and
181    lines that didn't arrive in one piece.
182  * Long country name, password or user name crashed the client.
183  * Fix xdump not to deny access to game state tables when maximum
184    minutes per day are exceeded.
185  * The server considers a country bankrupt when its treasury is
186    negative.  Except when it doesn't.  Fix that:
187    - report misreported countries with $0 as broke.
188    - If a command spent a few cents more than you had, commands requiring
189      money became unavailable even when rounding brought you back to
190      $0.  But logging out and back in then bankrupted you.
191    - If your treasury rose to exactly $0, commands requiring money
192      remained unavailable.
193    - If you had $0, sectors didn't build and sectors and ships didn't
194      produce at the update.
195  * Fix a bug in trade that made your money evaporate when a trade fell
196    through because you couldn't fully pay.  This bug was there since
197    the introduction of the market in 4.0.0.  It got aggravated by the
198    removal of forced loans in 4.3.0.
199  * Fix printing of the new group in army, fleet and wing.  Broken in
200    4.3.5.
201  * Fix flash not to screw up the message when the first argument
202    contains white-space.
203  * Don't let planes intercept when they are stuck in foreign bases, on
204    inefficient ships or land units, or on land units loaded on ships
205    or land units.
206  * Fix a bug that made interception require petrol to be present even
207    for planes that don't use fuel (SAMs).  Broken in 4.3.3.  Air
208    defense missions weren't affected.
209  * fairland and setsector now limit fertility to 100 instead of 120,
210    like the other resources.
211  * Generalize the autonav hack for fishing boats so it covers oil
212    derricks as well.
213  * Fix bug in path command that made it swallow every other step.
214    Broken in 4.2.22.
215  * The execute command no longer supports redirections and execute in
216    batch files.  Flaws in the Empire protocol make it next to
217    impossible for clients to implement that correctly.  See
218    doc/clients-howto for an explanation.
219  * Rewrite much of the client's code for sending commands and
220    receiving server output:
221    - No longer blocks on sending commands. which could deadlock the
222      session.
223    - Fix race condition that could cause server output to be discarded
224      on EOF on standard input.
225    - Don't discard server output when reading standard input fails.
226    - Fix error handling for execute and other, more obscure cases.
227    - More rigorous error checking for redirections and execute.
228      Clearer error messages, too.
229    - Fix execute redirected to file or pipe.  Believed to be broken in
230      4.2.0.
231    - The client now creates files for redirections with the same
232      permissions whether the redirection is in a pipe or not.  Before,
233      redirections without a pipe created files with no permissions for
234      group and others.  This change may make your redirected output
235      visible to other users on your system.  Use the usual controls,
236      like umask, to restrict permissions to your liking.
237    - Reject unexpected redirections (violating the protocol).  Before,
238      they silently replaced the current one, and in the case of pipes
239      leaked file descriptors and memory.
240    - Redirections in batch files are not implemented.  They didn't
241      quite work before, and could leak memory and file descriptors.  A
242      flaw in the Empire protocol makes them next to impossible to
243      implement correctly.
244    - The execute command in batch files is not implemented.  A flaw in
245      the Empire protocol makes this practically useless anyway.
246    - Old code leaked memory in various places.
247    - Unfortunate incompatibility with older servers: if you type the
248      EOF character (normally ^D) at an argument prompt, the session
249      hangs.  Use the interrupt character (normally ^C) to get out.
250  * The client now supports options -h and -v.
251  * The client no longer zaps its command line in a lame attempt at
252    protecting users who foolishly specify passwords on the command
253    line.  Zapping annoys system administrators and creates a false
254    sense of security.
255  * Journal entries are now flushed to disk right away when the server
256    is running in debug mode.
257  * Fix bugs in load that could make loading operations fail noisily
258    instead of silently on some systems.
259  * Server now reliably shuts down session when it receives an
260    end-of-file condition from the client.  Before, it merely failed
261    the current command when it got it at an argument prompt.
262  * Fix bug in execute that could crash the server on some systems when
263    it prompts for the argument.
264  * Fix bug that let you check whether a non-allied carrier is
265    efficient enough for takeoff when one of your planes got stuck
266    there somehow.
267  * Fix bug that let you attempt to escort a one-way mission to a
268    carrier with non-light, non-interceptor escorts.  Such planes don't
269    fit on carriers, and the command then failed with a bogus error
270    message.  Before 4.2.17, the planes flew, and the escorts were
271    teleported home.
272  * Change the rules for fitting planes on ships slightly, so that the
273    order of loading no longer matters. Choppers and x-lights can now
274    use plane slots even when not light.  X-light choppers, which don't
275    exist in the stock game, can no longer use x-light slots.
276  * The server now keeps its log file open, just like the journal.
277  * New server option -R to set the PRNG seed.  This is for
278    reproducible tests.  Change the Windows-only service uninstall
279    options from -r/-R to -u/-U.
280  * Supply a real PRNG for Windows instead of the leaky water-pistol
281    Windows provides.
282  * Threads sleeping until a specified time could return early under
283    Windows.  This could cause missed updates.  Broken in 4.3.10.
284  * Fix missing newline in show updates.
285  * Power report didn't factor tech into power correctly.  Broken in
286    4.3.3.
287  * Code refactoring and cleanup.
288  * Info file and documentation fixes and updates.
289
290 Changes to Empire 4.3.10 - Thu Sep  6 17:59:53 UTC 2007
291  * Bridge spans now cost $1000 instead of $2000, and bridge towers
292    $3000 instead of $7500.
293  * The Windows port now supports IPv6, but it still needs to be
294    enabled manually at compile-time.
295  * The custom table reader detects more errors.
296  * Do not leak world creation time in files and fairland, because
297    that facilitates attacks against the PRNG.  This misfeature crept
298    into 4.3.0.
299  * Remove the ancient, crufty non-UCONTEXT system-dependent LWP code.
300    Using it required manual hackery since 4.3.0.
301  * Plug file descriptor leak in add command.
302  * Don't kill player connections violently when their thread appears
303    to be hung.  Threads being aborted by update or shutdown could be
304    misidentified as hung, and the violence could lead to resource
305    leaks, locked out updates, and corrupted game state.
306  * Fix LWP to reliably wake up threads sleeping for a time.  Before,
307    players with a sufficiently fast connection could starve out system
308    threads, including the update.
309  * Fix a class of bugs that made commands behave differently while the
310    update is attempting to take control:
311    - No MOB_ACCESS mobility was gained.
312    - Telegrams were miscounted.
313    - Bulletins got misfiled as production reports.
314    - The navigate command ignored sail paths.
315    - The declare command was more quiet, and declarations of war
316      failed silently when SLOW_WAR was enabled.
317    - Many messages got misdirected to bulletins.
318    Some of these bugs go back all the way to Empire 2, ca 1995.
319  * New deity command reload, effect similar to SIGHUP.
320  * Not voting for a demand update no longer lets you veto further
321    demand updates.  This feature was flawed (it encourages players to
322    vote late so that they can tactically vote no and thus build up
323    veto rights), virtually unused, and buggy.  The edit command still
324    accepts and ignores the country key 'U' for compatibility, but it
325    is deprecated.
326  * Fix zdone not to claim to have triggered an update when they're
327    disabled.
328  * New update scheduler and ETU clock:
329    - New schedule file.  See doc/schedule for how to use it.  Replaces
330      econfig keys update_policy, adj_update, update_times, hourslop,
331      blitz_time.  A change of schedule does not require a server
332      restart.
333    - The force command can no longer force updates in the future.
334      Edit the schedule file for that.
335    - New command show updates to show the update schedule.  Obsoletes
336      the update command.
337    - New xdump game and xdump updates.
338    - New utility program empsched to help test update schedules.
339    - Replace option DEMANDUPDATE and econfig key update_demandpolicy
340      by econfig key update_demand.
341    - econfig key update_demandtimes no longer applies to scheduled
342      demand updates.
343    - You now receive new BTUs at the update in addition to login.
344    - You now always gain the same BTUs and MOB_ACCESS mobility per
345      turn, even when the update schedule changes, updates get missed,
346      or unscheduled demand updates run.
347    - Remove the mobupdate command, because porting it to the new ETU
348      clock is not worth it.
349  * Redesign of synchronization between commands, update and shutdown,
350    and how updates are triggered:
351    - Simplify update to a single thread waiting for the trigger.
352      Before, three update threads had to perform a carefully
353      choreographed dance to make updates happen.  The dance relied on
354      thread priorities for correctness, which are only implemented by
355      LWP.  With pthreads and under Windows, demand updates were prone
356      to two update threads starting up concurrently.  Even with LWP,
357      forced and demand updates could lead to double updates.
358    - Use a lock for synchronization: commands take it shared, update
359      and shutdown take it exclusive.  This makes update and shutdown
360      block until all aborted commands terminated and gave up their
361      lock.  Before, they proceeded blindly after waiting two or one
362      seconds respectively, which was cheesy and unsafe.
363    - New commands no longer fail while the update is pending, they are
364      delayed until after the update.
365    - New commands can no longer start during shutdown.  Before, they
366      could, but risked getting killed violently, possibly corrupting
367      game state.
368    - Fix command execution so that commands blocked in writing
369      redirections are abortable.  The bug allowed players to delay
370      update and shutdown indefinitely.
371    - Fix shutdown not to let player threads block on output.  This
372      let players delay shutdown indefinitely.
373    - Fix reading of player input not to block again after update or
374      shutdown aborted it.  The bug allowed players to delay update and
375      shutdown indefinitely.
376  * Thread priorities are only implemented by LWP and no longer used.
377    With LWP, they let players with a sufficiently fast connection 
378    starve out the threads that clean the lost file and kill idle
379    connections.  Drop them.
380  * Show nuke rounded required research incorrectly.
381  * Log unprintable characters as octal escapes rather than question
382    marks in the journal file.
383  * The files program no longer changes permissions of existing files.
384  * The files program now creates all files with permissions ug=rw and
385    all directories ug=rwx, modified by umask.
386  * Fix a bug that could make arm, disarm and nuke detonation work with
387    a used-up nuke instead of the armed one.  This could be abused to
388    detonate nukes multiple times.  Broken in 4.3.3.
389  * Fix nuke detonation output for zero blast radius.
390  * Plug memory leaks in thread code.
391  * Fix a bug that made LWP I/O wakeup unreliable.
392  * New march sub-command v for view.
393  * Journal was initialized before threads were, which was wrong.
394  * Fix server not to create a journal on SIGHUP when it is disabled.
395  * shutdown 0 now requests immediate shutdown instead of cancellation
396    of a pending shutdown.  shutdown -1 now cancels.
397  * flash and wall no longer split long message lines.
398  * Fix a bug in collect that screwed up a fully collected loan instead
399    of deleting it.  The screwed up loan could not be sharked or
400    collected, but it could be repaid.
401  * Remove the wait command, it's been broken and restricted to deity
402    since Empire 2, ca. 1995.
403  * Budget failed to take sector production into account for predicting
404    unit repairs.  Before 4.3.6, this bug bit only when you fooled
405    around with budget priorities.
406  * When unit repairs are limited by materials, the efficiency gain is
407    now rounded down.
408  * Ship repairs outside harbors and plane repairs by carriers used to
409    consume commodities when and as far as available.  Now, they
410    consume the same fraction of the real cost of each commodity,
411    i.e. commodity use is limited by the most scarce commodity.
412    Neither old nor new behavior make much sense, but the new code is
413    simpler.
414  * Code refactoring and cleanup, in particular to make the Windows
415    port less ugly.
416  * Portability fixes.
417  * Info file and manual page updates.  All manual pages are now
418    installed in section 6.
419
420 Changes to Empire 4.3.9 - Sat Jan  6 12:42:19 UTC 2007
421  * Fix declare to prevent the deity from changing relations for a
422    player to self.  Allow the deity to set the relations of a player
423    towards the deity.
424  * Fix arm not to put the same nuke on multiple planes (broken in
425    4.3.3).
426  * New option AUTO_POWER.
427  * Sectors now repair allied land units.
428  * Sectors now repair only own and allied planes.
429  * Fix repair of planes on foreign carriers: repair allied planes,
430    ignore the others.  Before 4.3.3, carriers destroyed rather than
431    repaired foreign planes.  Since 4.3.3, foreign planes were treated
432    as recoverable error.
433  * Fix automatic fortification of land units to use all excess
434    mobility even when mobility delta exceeds mobility maximum.
435  * Disable automatic fortification of land units when MOB_ACCESS is
436    on, because it is prohibitively slow then (broken in 4.2.13).
437  * Budget now shows level production (tech, education, research and
438    happiness) rounded instead of randomly rounded.
439  * Fix update not to randomly flush small level production to zero.
440  * Fix overly restrictive game file locking under Windows (broken in
441    4.3.8).
442  * Fix navigate to charge mobility for sweeping mines without moving
443    (broken in 4.3.6).
444  * Code cleanup.
445
446 Changes to Empire 4.3.8 - Fri Oct 20 18:30:28 UTC 2006
447  * Ships no longer produce stuff when the government is broke.
448  * Fix land unit casualties in revolts.
449  * Fix security units not to raid friendly che.
450  * Fix update sequence to ensure stopped sectors don't work on the
451    ships, planes and land units in the sector.  Before 4.3.6, this bug
452    bit only when you fooled around with budget priorities.
453  * Fix canal loading (was broken in 4.3.0).
454  * Fix tend not to tend land units that could not be loaded.
455  * Make xdump command available before break, but deny access to game
456    state.
457  * Lock game files to prevent concurrent access by multiple programs.
458    fairland does not yet obey the lock.
459  * Fix production to consider sector item limit.
460  * Fix swapsector to update coastal flag correctly (broken in 4.3.0).
461  * Enhanced mapping sub-commands in move, test, explore and transport.
462  * Code cleanup.
463  * Info file fixes.
464
465 Changes to Empire 4.3.7 - Fri Jul 14 23:05:19 UTC 2006
466  * Sanctuaries are again fully populated with civilians (4.3.6 changed
467    the limit, but not the population).  Food is now spread evenly
468    among them.
469  * Fix path finder to find shortest naval and aerial paths again
470    (broken in 4.3.4).
471  * transport's map sub-command now does the right thing for a unit
472    number argument.
473  * Fix bug in map sub-command of move, explore and transport that
474    passed junk to map command.  Could theoretically crash.
475  * Food need reported by starvation was one short for sectors without
476    food.
477  * Change land unit ammunition use back to what it was before 4.2.3.
478    This lets deities customize ammunition use independent of damage.
479    It also substantially reduces ammunition consumption at high tech.
480  * navigation and march enhancements:
481    - Sub-command 'f' now takes an optional ship / land unit number.
482    - Mapping sub-commands now take an optional ship / land unit
483      number.
484    - New sub-command 'd' to drop mines.
485  * Let minesweepers retreat at their full speed (missed in 4.3.6).
486  * SUPER_BARS cannot be harmed, so don't interdict them.
487  * Don't let trains and non-trains march together for now, because the
488    march code isn't prepared for that.
489  * New mapping flag 'n' to show nukes.
490  * Mapping flag '*' now shows nukes as well.
491  * New command nbmap to bmap around a nuke.  Overload command nmap to
492    map around a nuke when given a nuke argument.
493  * Fix an inconsistency that gave tactical bombers a small bonus
494    vs. flak when pin-bombing.
495  * Fix production to show the designation that actually produces, not
496    the designation as it is now (broken in 4.3.6).
497  * Fix accidental whitespace change in output of sdump, pdump and
498    ldump that crept into 4.3.5.
499  * Support user-defined sector types and products in custom tables,
500    not just customization of existing ones.
501  * Fix off-by-one bug in budget that used to be masked by budget
502    priorities until their demise in 4.3.6.  The bug could crash the
503    game on certain systems.
504  * Code cleanup.
505  * Info file fixes.
506
507 Changes to Empire 4.3.6 - Tue Jun 20 18:46:18 UTC 2006
508  * The shutdown command now terminates the server process correctly
509    even with LinuxThreads pthreads under Linux 2.4 and earlier.
510  * Cope with old versions of groff (broken in 4.3.0).
511  * You can now arm allied planes with nukes.
512  * Taking a nuke off a plane gives it to the sector owner again.
513    Feature was accidentally dropped in 4.3.3.  Recipient must be
514    allied.
515  * Naval path went bananas for impassable end sectors (broken in
516    4.3.1).
517  * New econfig key disabled_commands.
518  * New territory selector dterr, restricted to deities.  The territory
519    command defaults to it for deities.
520  * Let land units attack as long as they have positive mobility,
521    except for high-mobility terrain (mountains), where the rules
522    remain as they were: land units need to have all the mobility
523    charged for the attack, not counting combat and moving in to
524    occupy.  Rationale: Making sure your land units reach attack
525    positions with enough mobility left is a pain in the neck.
526    Requiring only positive mobility is friendlier, but allowed rushing
527    of mountains, so we make an exception there.
528  * Can typeset info pages as PostScript.  Result isn't exactly pretty.
529  * Support disabling of infrastructure in infra custom table.  Remove
530    redundant option DEFENSE_INFRA.  show command now shows only enabled
531    infrastructure.
532  * Fix crash on empty argument in bmap, lbmap, lmap, map, nmap, pbmap,
533    pmap sbmap, smap (broken in 4.3.1).
534  * New, simpler sector mobility cost formula:
535    - The basic cost is still a linear function of sector efficiency,
536      with customizable cost at 0% and at 100%.  The latter used to be
537      derived from the former.  The show command shows both parameters
538      now.
539    - Mountains are no longer a special case.
540    - Tweak costs: mountains now range from 2.4 to 1.2 instead of 2.174
541      to 1.304, highway, bridge head, bridge span and bridge tower
542      range from 0.4 to 0.001 instead of 0.2 to 0.001, and wilderness
543      is 0.4 flat instead of 0.6 to 0.4.  All sector types mortal
544      players can designate now cost the same at 0%.  That's a feature.
545    - Road infrastructure now reduces cost up to 90%, linear in road
546      efficiency (used to be close to that, but non-linear).  Same for
547      rail infrastructure, but 99%.  Adapted from Ice World V.
548    - Double land unit minimum cost to 0.02, to slow them down on
549      highways.
550    - Change land unit cost penalty in newly taken land to an extra 0.2
551      instead of a minimum of 0.2, to reduce penetration depth.
552  * Reduce bridge head defense and collect value to match highway's.
553  * sinfrastructure displayed bogus rail mobility costs when there was
554    no rail.
555  * Retreating engineers took full landmine damage instead of half.
556  * Fix socket creation code not to print a null pointer.
557  * Fix login option code not to search beyond end of table (broken in
558    4.2.21).
559  * Spy planes and satellites can no longer spot landspies.
560  * Spy planes can now spot surface ships at sea.  They can no longer
561    spot land units loaded on ships or land units.
562  * Fix train retreat mobility cost, and don't permit retreat off rail.
563  * Change maximum population to 100 for plains (was 49), mountains
564    (was 99), bridge spans and bridge towers (was 999), and to 1000 for
565    the other habitable sector types (was 999).
566  * Let minesweepers navigate at the speed their stats indicate by
567    letting them sweep on the move at no extra mobility charge.
568  * Reduce chance for planes to abort from 100-eff (if eff<80) to
569    80-eff.  This should make it easier to punch through air defense,
570    flak in particular, and increase the risk of getting shot down.
571  * Ship and land unit flak intensity is now proportional to efficiency.
572  * Ship and land unit flak intensity is no longer scaled by the tech
573    of the owner of the last thing firing.  It's still scaled by each
574    thing's tech.
575  * All ships and land units firing flak now spot the plane and are
576    spotted by the plane.  Previously, spotting stopped as soon as flak
577    maxed out.
578  * Inefficient land units were overcharged mobility when reacting.
579    Broken when Empire3 changed land unit mobility use not to depend on
580    efficiency, except for supply units.
581  * New journal file to log complete player input plus selected
582    important events.  Controlled by new econfig key keep_journal, off
583    by default.
584  * Fix unsafe shutdown on SIGINT and SIGTERM.
585  * Fix land unit path finding: paths weren't always cheapest (broken
586    in 4.0.2), and trains could be sent down paths without rail (never
587    worked).  Also fixes unit reaction path cost.
588  * The custom table reader can now deal with sector, item, product and
589    infra tables more comfortably.  
590  * Remove option BIG_CITY.  Deities can customize the sect table to
591    get the same effect.
592  * Many more selectors can now be compared with names, not just
593    numbers.  This includes nations, e.g. census ?old=Mirkwood.  Does
594    not fully work for queer names like &&&.
595  * Let land units on missions support, just like ships.
596  * Don't let units loaded on a train react.
597  * Change update sequence to repair ships, planes and land units after
598    sectors produce.  This makes repairs use new avail instead of old.
599  * Let players stop and start units.
600  * Remove budget priorities.
601  * Make plane report easier to understand.
602  * Change land report to show carriers in the same format as plane and
603    nuke report do.
604  * Code cleanup.
605  * Info file and manual page fixes.
606
607 Changes to Empire 4.3.5 - Sun May 28 07:49:54 UTC 2006
608  * In conditionals, ~ compared to a string selector now stands for an
609    empty string.
610  * Change encoding of `not in any group' from " " to "".  This makes
611    fleet=~ work.  It also affects xdump.
612  * Fix plane capture code to clear wing.
613  * People now eat and starve exactly the same in sectors, ships and
614    land units.  There used to be small differences, and civilians and
615    uw loaded on land units didn't eat at all.  The starvation command
616    has been updated accordingly.
617  * Fix bug that makes it impossible to assault or board with land
618    units (broken in 4.3.4).
619  * Code cleanup.
620
621 Changes to Empire 4.3.4 - Thu May 25 05:46:10 UTC 2006
622  * Don't use non-portable groff features (broken in 4.3.0).
623  * Work around potential crash bugs in command argument access.
624  * Plug major information leak through nation selectors (broken in
625    4.2.21).  The fix unfortunately exchanges the meaning of xdump
626    nation and xdump country.  Sorry about that.
627  * Minimize redundancy between (mortal's) xdump nation and xdump
628    country.
629  * New nation selector rejects.
630  * xdump nation now shows foreign relations and no longer discloses
631    hidden relations.
632  * Fix crash bug in edit.
633  * Fix number of planes building in budget command (broken in 4.3.3).
634  * Selectors group, fleet, wing and army are now strings, and obvious
635    syntax like fleet#a works.  xdump also shows the strings now.
636    Units not assigned to a group currently have group string " ", but
637    that may still change.
638  * Don't fold conditionals to lower case, because it breaks valid
639    conditionals like fleet#A.
640  * Mobility cost of a plane sortie is no longer limited to current
641    mobility + 32.
642  * Various formulas no longer truncate or round intermediate results.
643  * Interdiction mission charged twice the normal mobility cost for
644    torpedoes.
645  * Fix sail not to interpret negative x-coordinates as unsail
646    argument.
647  * Improved configure script.
648  * Code cleanup.
649
650 Changes to Empire 4.3.3 - Tue May 16 21:35:47 UTC 2006
651  * power c can now show powerless countries.  power c * works.
652  * Fortresses now require 5% efficiency to return fire and interdict.
653  * Range of ship return fire and support fire no longer depends on
654    efficiency.
655  * Fix heap smash in login command client.  Remote hole!
656  * Properly destroy nukes on collapsing bridges.  Before, you could
657    rescue them by building a new bridge or arming them on naval
658    planes.
659  * Nukes are now numbered like other units:
660    - New selector type replaces selectors number and types.
661    - New selector plane points to plane armed with this nuke.
662    - New selectors effic, mobil, tech, group, opx, opy, mission,
663      radius.  Provided because all units have them; values are
664      currently not interesting.
665    - nuke command output redesigned.
666    - ndump output changed subtly: nukes are no longer sorted by
667      location, nukes in the same location no longer share id, and
668      nukes on planes are shown.
669    - transport nuke now works like transport plane.
670  * arm and disarm now accept the common plane syntax, not just plane
671    numbers.
672  * Fix arm to let you change an armed plane's air-burst/ground-burst
673    (broken in 4.2.6).
674  * territory no longer re-prompts when supplied with a bad argument,
675    it just fails.
676  * edit lets you edit stuff that is actually computed from other
677    state, like sector's coastal flag.  This makes no sense and is now
678    deprecated.  Stuff deprecated since 4.2.15 is now gone.
679  * Code cleanup.
680
681 Changes to Empire 4.3.2 - Thu Apr 27 17:59:58 UTC 2006
682  * Fix security units' raid at the update (broken in 4.0.0, fixed only
683    for 100% units in 4.2.7).  Back out 4.2.7's 2.5x deadliness
684    increase.  Make sure empty units don't kill anyone.
685  * Fix bug in player_init(), which was most likely fatal on 64 bit
686    hosts.  Broken in 4.3.0.
687  * Fix xdump not to disclose other countries' realms (new in 4.3.0).
688  * The order in which sectors were visited for `*' arguments disclosed
689    the real origin, fix.  Mapping commands used to work around this
690    bug, until 4.3.1 exposed it there as well.
691  * Code didn't compile on some systems.
692  * Fix edit plane not to truncate large values for keys 'a' and 'd'.
693
694 Changes to Empire 4.3.1 - Sat Apr 15 11:40:47 UTC 2006
695  * Fix check of game state on server startup (new in 4.3.0).
696  * sail now accepts a destination sector.
697  * Tend could send bogus bulletins (broken in 4.3.0).
698  * Plug memory leaks in mission command.
699  * Close loophole in navigate that allowed players to find all sectors
700    that are unfriendly or inefficient harbors or bridges.
701  * Server didn't start when default econfig was missing and user
702    didn't supply one with -e (broken in 4.3.0).
703  * Retreat condition 'h' (helpless) never worked, fix.
704  * Fix retreating mine sweepers to use mobility for sweeping.
705  * Fix retreating land units to hit mines with the same probability
706    and to take the same damage as in normal movement.  Before,
707    hit probability was higher, and damage was lower.
708  * Ships could retreat into sectors owned by whoever made them
709    retreat, but not in their owner's sectors.
710  * Fix 'm' at the movement prompt of transport and test.
711  * Fix march and test not to apply conditionals to sectors mapped,
712    which led to spurious error messages.
713  * Fix break not to respect conditionals.  The bug let players keep
714    sanctuaries.
715  * Fix retreat code not to respect conditionals.  Attackers could
716    abuse this to suppress fleet and army retreat orders.
717  * Fix retreat and edit to zero-terminate retreat paths.
718    Theoretically abusable for gaining information.
719  * Fix format string crash bugs in load, spy and bomb.
720  * Fix the telegram editor: empty telegrams were broken in 4.2.21, and
721    ~p before the first line of text never worked.
722  * Fix ancient bridge building race condition that could break the
723    test whether the player can afford the bridge.
724  * Fix trade lot change detection in set command.  Probably abusable.
725  * The pthread code now compiles under Solaris.
726  * navigate and march now permit any whitespace between route and
727    optional argument for radar, lookout, sonar, not just spaces.
728  * Fix canal navigation (was broken in 4.3.0).
729  * Info file fixes.
730
731 Changes to Empire 4.3.0 - Sun Mar 19 08:13:10 UTC 2006
732  * version no longer pretends option SHIPNAMES still exists.
733  * Remove files auth and ban.  They could be used to restrict client
734    address and user.  Restricting user is useless, because players can
735    send whatever they want.  Banning IPs is better done with a packet
736    filter.  That leaves restricting deity IPs.  Provide new econfig
737    key privip for that.  Apply it to session kill as well as login.
738  * xdump escapes GUINEA_PIGS status:
739    - xdump is now enabled unconditionally.
740    - xdump sect now dumps selector coastal, because it can't be
741      reliably computed from other xdump information.
742    - New xdump realm and country.  Realm information is now stored in
743      a separate file, with appropriate selectors.
744    - Reviewed for completeness and information leaks.  See info xdump
745      for remaining issues.  New treaty selector uid, nat selectors
746      relations, contacts.  Removed useless selectors: news and lost
747      uid, nat dayno.
748    - Command syntax changed.
749    - xdump opt is no more, option information is now in xdump ver.
750    - xdump can now dump meta-data.
751    - Header and footer changed to be more compact.  You now need
752      meta-data to identify fields.
753    - Bug fixes.
754    - Documentation in doc/xdump.
755  * New econfig key builtindir.
756  * New econfig key custom_tables lets you customize configuration
757    tables without recompiling.  Customizing tables other than unit
758    tables is not recommended for now.  See doc/econfig for
759    instructions.
760  * Check configuration and game state are sane on server startup.
761  * Remove option NONUKES and NEUTRON.  Deities can load a suitable
762    nuke table to get the same effect.
763  * Remove option DRNUKE.  Use econfig key drnuke_const to control
764    whether nukes need research.
765  * Disqualify land units from performing missions while loaded on
766    ships or trains.
767  * Fix dump for strings without terminating zero.
768  * Fix login command option not to send an extra prompt.
769  * zdone now displays information about demand update vetoing.
770  * The Windows port now requires Winsock version 2.
771  * Remove econfig key powe_cost.
772  * version report now shows all the configurable settings of interest
773    to players.
774  * carg and lcarg now display people as well.
775  * ldump now dumps civ and uw as well.
776  * Fix dangling pointer dereference in dogfighting code.
777  * Tell sector owner when partisans take over.  But don't disclose che
778    casualties then.
779  * emp_server, files, fairland now support options -h and -v.
780  * Simplify baroque version numbering to a single version number.
781    This affects output of version.
782  * New show item and show news.
783  * New build process:
784    - Follow the usual steps: configure; make; make install.  The
785      latter is optional.  The only file deities still have to edit is
786      econfig.
787    - Use GNU Autoconf for system configuration.
788    - Use GNU Make for portability and features.
789    - Support separate build trees.
790    - Remake out-of-date dependencies automatically.
791    - Remake out-of-date info files automatically.
792    - Flatten info directory.
793    - Formatted info files are no longer distributed in source tarball.
794    - Use LWP only with UCONTEXT.  Autoconfiguring the other LWP
795      low-level options doesn't seem to be worth the effort, as
796      UCONTEXT should be pretty portable.
797  * Fix use of freed memory in sail.
798  * sail could let large ships enter big cities.
799  * Fix reject and accept not to require contact.
800  * Fix sharebmap and telegram to prompt for a missing first argument.
801  * Fix report to align column research correctly for deities.
802  * When the optional newspaper argument doesn't work because HIDDEN is
803    enabled, complain instead of ignoring it silently.
804  * When BLITZ is enabled, fairland no longer permutes country numbers
805    in newcap_script so that start islands are ordered from top left to
806    bottom right.
807  * Minimize output format differences between options:
808    - census shows column fall regardless of FALLOUT.
809    - show nuke now shows column res regardless of DRNUKE.
810    - report no longer suppress column status when HIDDEN is enabled.
811      HIDDEN limits status information like for the country command.
812    - relations column width differed depending on option SLOW_WAR.
813      Always use the wider format.
814  * Fix a bug in edit that suppressed the player notification telex on
815    military reserve change.
816  * Fix command dispatch not to let deities use commands that are
817    declared not to be available to them.  The only command affected is
818    break.
819  * Fix the list command for visitor.
820  * econfig key m_m_p_d no longer applies to deities.
821  * Fix the origin command for country #0.  Allow moving origin to
822    another country's origin.  Allow deities to reset origin to
823    absolute 0,0.  This turns origin into a superset of the offset
824    command.  Remove offset command.
825  * Fix a bug that caused unpredictable flak damage when it should have
826    been maximum damage (was broken in 4.2.19).
827  * Don't store initial capital location, remove the associated nat
828    selectors xstart, ystart.
829  * Fix production command to consider resource depletion.
830  * Fix justification of coordinate output in cutoff and mission.
831  * Option UPDATESCHED is no longer optional.  Disabling it didn't
832    work anyway.
833  * Support IPv6.
834  * Turn options into ordinary econfig keys.
835  * New econfig key start_cash.
836  * BTU regeneration now depends on the capital's work percentage.
837  * nation now supports an optional argument that lets deities ask for
838    somebody else's nation report.
839  * Fix nation to display SANCTUARY instead of VISITOR for countries in
840    sanctuary.
841  * Fix capital to let you use a regained sacked capital without
842    activating another one in between.
843  * Don't move capital when it is sacked.
844  * New ship capability canal, replacing obscure formula based on build
845    materials.
846  * You now need a capital to request a demand update.
847  * power now ignores landspies.
848  * Fix LWP stack checking.
849  * Clean up LWP, drop dead machine-specific code, fix portability bugs
850    in UCONTEXT code.
851  * census now shows the old owner instead of `*'.  dump is unchanged
852    to avoid breaking clients.
853  * peek no longer prints the old owner.
854  * When a bombed land unit retreated, collateral damage was applied to
855    the wrong sector.
856  * paradrop, drop and fly can no longer abandon the base sector.
857  * Tending foreign ships now sends a bulletin to the owner.
858  * Fix bug that permitted login for inactive countries, including ""
859  * Fix tend for spies.
860  * Change launch to fire all missiles selected at the same target.
861    Previously, it prompted for a new target after each missile.
862  * add, consider, build, launch and fire no longer re-prompt when
863    supplied with a bad argument, they just fail.  Consequently, the
864    build command no longer lets you list types you can build.  It
865    points to the show command instead.
866  * Fix add not to truncate country number.
867  * Fix selector coastal to be accurate at all times.
868  * Fix obscure bug in fairland: the sector added last to an island
869    wasn't considered coastal.  Affected resource computation.
870  * Fix sector wiping in add command.
871  * Remove options NO_LCMS, NO_HCMS, NO_OIL.  They were broken in many
872    ways.  Custom configuration tables should become a serviceable
873    replacement eventually.
874  * Client no longer freezes on long lines of server output.
875  * Fix uninitialized signal mask bugs.
876  * Fix Windows service code's treatment of -e.
877  * Sub interdiction disclosed sub owner through news' actor selector.
878  * country reports on all countries, but carefully limits information
879    disclosed to mortals.  Output format changed.
880  * Market no longer forces sellers to grant loans.
881  * Fix potential crash bug in set command.  Friendlier prompt and
882    diagnostics.
883  * Substantial code cleanup and portability fixes.
884  * Extend empfile abstraction to cover game configuration.
885  * Overhaul of game state storage.
886  * The above includes major contributions from Ron Koenderink.  Many
887    thanks!
888
889 Changes to Empire 4.2.23 - Sun Oct 23 09:28:26 UTC 2005
890  * Make version pretend option SHIPNAMES still exists, for the benefit
891    of clients that still depend on it.
892  * The change to conv in 4.2.22 could crash or compute incorrect
893    maximum population.
894  * Info updates missing in 4.2.22.
895  * A few code cleanups.
896
897 Changes to Empire 4.2.22 - Tue Oct 11 20:23:51 UTC 2005
898  * Log player login, logout and session kill.
899  * Close loophole in assembly point rules that allowed players to find
900    all unowned sectors.  The assembly point must now be owned by you
901    or an ally, or you or an ally must have a ship there.
902  * Don't let embarked land units fire flak.
903  * Fix display of the last connection's host when the host name was
904    not resolved.
905  * Fix change command to accept full length representative (password),
906    currently 19 characters.  It used to chop off after eight
907    characters.
908  * Non-recon missions no longer establish contact to owners of
909    overflown sectors, because those missions do not identify the
910    owner.  This matches info Hidden.
911  * The following events now establish contact:
912    - Catching a spy
913    - Sighting a ship when toggle coastwatch is off
914    - Spotting overflying planes
915    - satellite spotting land units
916    - lookout and llookout spotting ships, planes and land units
917    - Any relations change
918  * The country command's `temporary' state of disorder ended after
919    ten years.
920  * Telegram notifications could get lost in exotic circumstances,
921    e.g. while a second client attempted to connect.  Abusable.
922  * Remove option SNEAK_ATTACK.
923  * Fix lboard not to let you board dead land units.
924  * Fix stack smash in bomb, drop, fly, paradrop, recon and sail.
925    Remote hole!
926  * bomb, drop, fly, paradrop, recon and sail now deal with EOF
927    correctly.
928  * Fix fly to let the player abort the command at the last prompt.
929  * Client no longer reads execute scripts in binary mode under
930    Windows.
931  * New econfig key listen_address.
932  * econfig key port can now be a service name.  Service empire no
933    longer takes precedence over econfig.
934  * Client falls back to compiled-in host only if environment doesn't
935    supply one, not if it can't be resolved.  Same for port.
936  * Oil derrick could extract slightly more oil than was in the ground.
937  * test command checked start sector for space and some other things
938    instead of end sector.
939  * convert now silently limits conversions to avoid exceeding maximum
940    population.
941  * shoot no longer limits you to 999 victims.
942  * 4.2.19 broke pin bombing commodities on some platforms.
943  * Don't block on output while update is pending.  This is required to
944    ensure the update can abort commands.
945  * Commands submitted while the update is waiting for commands to
946    abort now fail.
947  * The force command no longer waits for the specified time.  It
948    starts a scheduling thread instead, just like shutdown.
949  * Correct grammar and punctuation in output of version.
950  * Option SHIPNAMES is no longer optional.
951  * Fix output of qorder and sorder for ships with sail path.
952  * Don't change capital to agribusiness on retake.  From Pat Loney.
953  * bdes prompt for new designation was messed up for empty bmaps.
954  * Client now supports pipes under Windows.
955  * Care for subtle Windows socket incompatibilities.
956  * Fix strength command not to lie about units reacting into
957    mountains.
958  * strength now yields the processor periodically, to keep the game
959    responsive.
960  * Schedule commands more fairly.  Previously, a sufficiently fast
961    player could starve out the others.
962  * launch assumed plane maximum mobility 127 for calculating when
963    satellites will be ready to use.
964  * Drop support for for DCE threads.
965  * Drop support for pthread implementations lacking pthread_kill().
966    This includes ancient versions of OS X.
967  * Code cleanups.
968  * Minor info file fixes.
969  * The above includes major contributions from Ron Koenderink.  Many
970    thanks!
971
972 Changes to Empire 4.2.21 - Sat Jul 16 17:51:01 UTC 2005
973  * Don't let threads block on output to another player thread's
974    socket.  Such blocking violates basic design assumptions and can
975    cause all kinds of grief.  In particular, it causes player session
976    hangs under Windows with 4.2.20.  Broken since the introduction of
977    flash and asynchronous telegram notification many years ago.
978  * Threads sleeping until a specified time could return early under
979    Windows.  This could cause double-updates.
980  * Fix fallout damage (was broken in 4.2.19).
981  * Fix show sector s (was broken in 4.2.19).
982  * Fix deliver not to deliver friendly civilians into occupied
983    sectors.
984  * Fix mil duplication in board (was broken in 4.2.14).
985  * Fix stack smash in lrange, shoot and execute.  Remote holes, and
986    the last one doesn't even require authentication.
987  * Fix crash bug in emp_config parsing.
988  * Fix buffer overruns in turn and shutdown.
989  * Fix second argument of shutdown.
990  * tele and turn now abort on EOF.
991  * Fix display of MOTD and game down message of maximum size.
992  * Correctly support telnet line termination on input.  Previously,
993    carriage returns could slip into ship names and such.
994  * Fix flash not to lie about recipients that are just logging in.
995  * Remove obscure login command list.
996  * Convert client from obsolete termcap to terminfo, and clean up
997    terminal handling.
998  * New fairland option -h to print usage information.  Improved
999    command line syntax diagnostics.  Exit unsuccessfully on unknown
1000    options.
1001  * fleet and army now copy retreat orders of the fleet's or army's
1002    first member with group retreat orders in the same sector.
1003    Previously, they used the retreat orders of the first fleet or army
1004    member, which is less than useful, and failed to take ownership
1005    into account, which is an abusable bug.
1006  * New xdump nation.
1007  * Fix xdump not to disclose other countries' losses.
1008  * Fix exit status of files program when it can't create files.
1009  * Support UTF-8 encoded Unicode in human-human communications.  This
1010    affects MOTD, game down message, telexes, announcements and flash
1011    messages.  See new doc/unicode for technical details.
1012  * New login command `options' for client/server option negotiation.
1013    See new doc/clients-howto for technical details.  The only option
1014    so far is UTF-8.
1015  * emp_client -u now requests UTF-8.  This requires a terminal that
1016    understands UTF-8.
1017  * Fix news for land unit defensive support.
1018  * Properly mark sea mines hit by retreating ships.  Unmark mines
1019    cleared by bridges.
1020  * Fix diagnostics for unknown selector names in conditionals (was
1021    broken in 4.2.20).
1022  * Fix selector name clashes: rename ship selector mobquota to mquota,
1023    land selector for reaction range limit from rad to rmax.
1024  * Fix Windows services for relative file names on command line or in
1025    econfig (was broken in 4.2.20).
1026  * econfig keys ship_grow_scale, plane_grow_scale and land_grow_scale
1027    are now float.  This gives deities finer control over maximum
1028    efficiency gain.
1029  * Fix production command for sectors with 60% efficiency.
1030  * Improve syntax of read for deities.
1031  * Code cleanups.
1032  * Some info topic names differed only in case, which loses on
1033    case-insensitive file systems, and is a bad user interface even
1034    when it works.  Change those names.  Rename deity command hidden to
1035    peek because its info topic clashed with that of option HIDDEN.
1036  * Thanks to Doug Wescott sheep are finally covered properly in info.
1037  * Documentation fixes.
1038  * Much of the above was contributed by Ron Koenderink.  Many thanks!
1039
1040 Changes to Empire 4.2.20 - Tue Mar 22 21:07:18 UTC 2005
1041  * When units in different sectors marched, only units in the sector
1042    with the highest-numbered unit were interdicted.  A marching
1043    non-spy made all marching spies visible to interdiction regardless
1044    of location.
1045  * Fix crash when interdiction sinks second ship in a sector.  Broken
1046    in 4.0.10.
1047  * Fix an ancient bug in simulation of level production that clobbered
1048    stack and could lead to low predictions, typically zero, which
1049    screwed up budget.  The bug had no effect until 4.2.19.
1050  * When a sector revolts, and there wasn't enough space to liberate
1051    all uw, the number of remaining uw got the wrong sign.  Broken in
1052    4.2.14.
1053  * Log and abort when LWP stack check detects stack smash.  Server
1054    option -s no longer implies -p.
1055  * The native Windows build now supports -p and -s.
1056  * The native Windows build now properly deals with ^C when running in
1057    the foreground.  It no longer prompts for a quit command on the
1058    terminal.
1059  * The meaning of server option -D in presence of -e is unclear.
1060    Other programs only support -e.  Remove option -D.  Use -e
1061    DIR/econfig instead of -D DIR.
1062  * New server option -v shows version information.
1063  * Fix the server's exit status with -h.  Broken in 4.2.19.
1064  * The linux-pthreads build failed to shut down on signals.
1065  * Fix threading bugs in the native Windows build that made shutdown
1066    unsafe and screwed up update aborting commands.
1067  * New econfig key pre_update_hook to allow automatic, safe backup
1068    right before the update.  See scripts/backup for an example.
1069  * The server now prints log messages to stderr as well when running
1070    in the foreground.
1071  * Fix potential buffer overflows in logerror() and lwpStatus().
1072  * Server now requires POSIX signals.  It no longer catches SIGUSR1.
1073  * Remove support for ancient versions of HP-UX.
1074  * Fix seeding of PRNG broken in 4.2.19.
1075  * Don't reseed the PRNG in commands, it hurts randomness and could be
1076    abused by crafty players.
1077  * The server now makes the data directory its working directory.
1078    This also gets rid of a bug that changed the file name of the
1079    sector, power, nation and lostitems file unless econfig could not
1080    be read.
1081  * The server now writes a pid file.  Thanks to Daniel O'Connor.
1082  * More user friendly server startup: more errors are detected while
1083    the server still runs in the foreground, which makes it possible to
1084    complain to stderr and to exit unsuccessfully.
1085  * Early log messages went to the log file in the default data
1086    directory, even though econfig specifies another data directory.
1087  * Specifying an econfig file on the command line that can't be read
1088    is now fatal.
1089  * Errors in econfig are now fatal.
1090  * The server now refuses to start when it can't open data files.
1091  * News are now sorted and expire sanely.
1092  * Conditionals can now compare strings as well.
1093  * Corrupted down and motd files could cause buffer overflows.
1094  * Fix recon to let player abort at the flight path prompt.
1095  * power no longer rounds worldwide numbers for deities.
1096  * power command failed to recognize deities with non-zero country
1097    number.
1098  * Change output of production command so that columns are aligned
1099    even for large values.  Replace column wkfc by more useful column
1100    avail.
1101  * neweff and production miscalculated work when mil exceeded
1102    population limit.
1103  * neweff miscalculated work when the population limit exceeded 999.
1104  * Fix capping of avail when a big city is torn down.
1105  * Fix a bug in fire that allowed players to find all submarine uids.
1106  * Maximum sector population is no longer hardcoded, and now covered
1107    by xdump.  Option RES_POP now affects mountains and plains as
1108    well.  From Ray Hyatt.
1109  * Fix fina and news not to ignore errors in conditions.
1110  * The native Windows build now requires Windows Sockets 2.
1111  * The native Windows build now supports multiple instances of the
1112    service.  The ability to supply additional startup parameters to
1113    the service has been removed.
1114  * Implement fairland command line parsing under Windows.
1115  * Improved fairland and emp_server usage message.
1116  * Code cleanups.
1117  * Minor info file and documentation fixes.
1118  * Much of the above was contributed by Ron Koenderink.  Many thanks!
1119
1120 Changes to Empire 4.2.19 - Thu Dec 23 20:24:24 UTC 2004
1121  * Fix order not to unload into full sectors.
1122  * Fix scrap not to dump stuff into full sectors.  Excess stuff is now
1123    destroyed.
1124  * Fix distribute not to conjure up a civilian when importing
1125    civilians from a dist center that doesn't have any.
1126  * Fix flak to resupply no more shells than actually needed.
1127  * Fix rounding error in shoot that could result in more people shot
1128    than actually there.
1129  * Fix info and apro error handling.  In particular, do not leak
1130    potentially sensitive information on the server to players.
1131  * info no longer shows a random matching page when the topic argument
1132    is ambiguous.  Instead, it lists all matching topics.
1133  * Embarked land units and overflying planes no longer spot each
1134    other.
1135  * Fix show command to show only sectors that players can designate
1136    (was broken in 4.2.18).
1137  * Fix a rounding error in production command column `max'.
1138  * Fix production command for overpopulated mountains and plains.
1139  * Fix tradeship ally cut to match documentation.
1140  * Fix plague, which was was broken in 4.2.14: it got stuck in stage I.
1141  * Fix a bug in aerial sonar where ships could mask submarines with
1142    the same number modulo 256.
1143  * Don't allow bombing of subs that were not detected.
1144  * MOTD and the game down message are now entirely separate: use `turn
1145    motd' for the MOTD, and `turn on' and `turn off' for the game down
1146    message.  `turn on' no longer lets you edit the MOTD.
1147  * Remove option NUKEFAILDETONATE.
1148  * Option ORBIT is no longer optional.
1149  * New option GUINEA_PIGS to control experimental stuff not ready for
1150    prime time.  If your deity enables this in a serious game, run!
1151  * Many xdump fixes.  xdump is now enabled by option GUINEA_PIGS.
1152  * New ship and land selectors rflags, rpath.
1153  * New ship selectors for order: xstart. xend, ystart, yend,
1154    cargostart, cargend, amtstart, amtend
1155  * New ship selectors for sail: mobquota, path, follow.
1156  * New news selector uid.
1157  * Implement command line parsing under Windows where it was missing.
1158  * emp_server and and files print a usage message on command line
1159    syntax errors.
1160  * Fix how emp_server exits after being panicked by a signal.  It can
1161    now dump core when this happens.
1162  * Fix bug in client that could crash it when a line of input starts
1163    with '?'.
1164  * Client now gets user name from environment variable LOGNAME if set,
1165    else from system.
1166  * The native Windows build can now run as a service.
1167  * Redirecting client input now works under Windows.
1168  * Code cleanups.
1169  * Don't confuse work with loyalty in info Citizens.
1170  * Minor info file and manual page fixes.
1171  * Much of the above was contributed by Ron Koenderink and Marc
1172    Olzheim.  Many thanks!
1173
1174 Changes to Empire 4.2.18 - Tue Sep  7 14:08:59 UTC 2004
1175  * Fix info to accept abbreviated arguments under Windows.  From Ron
1176    Koenderink.
1177  * Buying planes or land units loaded on something didn't work when
1178    that something moved.
1179  * Fix a bug that could produce update cascades with update policy
1180    UDP_TIMES.
1181  * Fix delivery and distribution to grant packing bonus only to
1182    efficient sectors, just like move.  Previously, delivery ignored
1183    efficiency, and distribution behaved as if it were an efficient
1184    sector without special bonuses.
1185  * New sector selectors loyal, access; ship selectors radius, access,
1186    xbuilt, ybuilt, builder, name; plane selectors radius, access,
1187    theta; land unit selectors radius, react, nland, access; lost
1188    selector id.
1189  * Fix sector selectors che, che_target; plane selectors att, def;
1190    nuke selector types; treaty selector exp; news selector time;
1191    commodity selectors type, xbuy, ybuy.
1192  * Option PLANENAMES is no longer optional.
1193  * Ensure config parameter variables and their description in
1194    configkeys[] are consistent.  Inconsistencies there caused bugs in
1195    the past.  From Marc Olzheim.
1196  * Complain if econfig file can't be read.
1197  * Better messages for errors in econfig file.
1198  * Remove unused econfig keys hard_tech and last_demand_update.
1199  * New econfig key news_keep_days to configure news expiry.
1200  * New econfig key anno_keep_days to configure announcement expiry.
1201  * Fix announcement expiry.  It leaked file descriptors and memory,
1202    and could corrupt the anno file.  From Ron Koenderink.
1203  * New command xdump: experimental extended dump.  Disabled for now.
1204  * Bankers no longer round down debts, and they collect interest for
1205    the time debtors are idling at sub-prompts.
1206  * Loan interest calculation was broken at the due date and after a
1207    last payment made at the due date.  With luck, debtors could abuse
1208    this to repay loans cheap (they couldn't gain cash, though), sharks
1209    to purchase loans cheap, and creditors to collect excessively.
1210  * Fix major bug in transport that allowed two cooperating countries
1211    to duplicate items.
1212  * Don't report interdiction damage twice when transporting planes.
1213  * Fix message for attempting to transport a plane in a sector not
1214    owned by the player.
1215  * Fix confusing diagnostics when refusing to improve defense because
1216    option DEFENSE_INFRA is off.
1217  * Simplify confusing code in budget.
1218  * Fix spacing in output of budget and show.
1219  * Change one-way plane sorties to match ordinary sorties: offer
1220    carriers regardless of the sector they're in, require carriers to
1221    be efficient.
1222  * Allow `realm #'.
1223  * Don't print owner of incoming missile twice when intercepting it.
1224  * Simplify constituent storage in product characteristics.
1225  * Replace remaining `variables' leftovers; mainly in unit
1226    characteristics.
1227  * Remove leading spaces in deity unit dumps.
1228  * Replace inappropriate uses of compile time constant ETUS by 60.
1229    Deities don't change ETUS, they change etu_per_update by editing
1230    econfig.  This nonsense dates back at least to chainsaw 3.31.
1231  * Change ship production (fishing and drilling for oil) to match
1232    sector production.  Ship efficiency and tech are now relevant, and
1233    all people on board work.  From Ron Koenderink.
1234  * Code cleanups.
1235  * Minor info file fixes.
1236
1237 Changes to Empire 4.2.17 - Mon Aug 16 16:21:53 UTC 2004
1238  * Fix seeding of PRNG under Windows.  The bug made updates occur at
1239    a predictable time in the update window.  From Ron Koenderink.
1240  * Close major loophole in drop that allowed players to determine
1241    whether an arbitrary sector is sea, allied land, or other land.
1242  * fly could fly civilians into occupied sectors.  For consistency
1243    with other means to move around stuff, this is no longer possible.
1244  * Don't allow flying to a carrier that doesn't have space for the
1245    planes.  Previously, planes that did this were teleported home,
1246    which could be abused.
1247  * Close loophole in bomb that allowed players to find all
1248    sanctuaries.
1249  * Fix move and explore not to crash when moving civilians to a sector
1250    without civilians, and interdiction destroys them all.  Found and
1251    debugged by Jeff Cotter.
1252  * Fix printing of messages entered with turn command.  '%' characters
1253    could cause havoc, even crashes.
1254  * Use sector's actual maximum population to compute chance of plague
1255    outbreak.  Previously, code used 9999 for big cities and 999 for
1256    other sectors, and info Plague said 999.  This makes all crowded
1257    sectors equally vulnerable, even mountains, plains, and inefficient
1258    big cities.
1259  * Oil derricks no longer drill and deplete more oil than they can
1260    hold.  From Ron Koenderink.
1261  * Version 4.2.15's coordinate and list parsing fixes reject trailing
1262    junk.  That's too strict.  Silently ignore trailing junk as long as
1263    it starts with whitespace.
1264  * Version 4.2.15's selector rewrite broke some type literals,
1265    e.g. `?des=n' was interpreted as `?des=newdes'.  Change to prefer
1266    type literals to selectors.
1267  * Nightly build patches game to get repeatable PRNG results.  From
1268    Marc Olzheim.
1269
1270 Changes to Empire 4.2.16 - Wed Jun 16 18:56:16 UTC 2004
1271  * Previous version broke sector production when part of the work is
1272    used for sector construction.  Fix courtesy Jeff Cotter.
1273  * Add rudimentary tests to nightly build.  From Marc Olzheim.
1274
1275 Changes to Empire 4.2.15 - Wed May 26 17:55:58 UTC 2004
1276  * test command no longer asks whether to abandon the sector.
1277  * explore command could generate a bogus `lost' record when it
1278    regains an abandoned start sector.
1279  * edit command now properly updates stats when editing tech level of
1280    ships, planes or land units.  A few of these stats can be edited
1281    separately, which doesn't make much sense, and is now deprecated.
1282  * edit command no longer accepts efficiency values that would destroy
1283    the edited unit.  Deities can still delete units by setting the
1284    owner to zero.
1285  * upgrade command used to charge an amount of avail that didn't match
1286    info upgrade.  Neither the implemented nor the documented amount
1287    made much sense.  Change it to 15% of the full build cost.  Rewrite
1288    info upgrade.
1289  * Commands upgrade and build could be off by one when reporting
1290    required avail.
1291  * upgrade command reported rounded cost but charged unrounded
1292    cost.  Round cost of upgrade down to match behavior of build.
1293  * Upgrading planes now preserves range when it is less than the
1294    maximum range.  It used to set it to the new maximum range.
1295  * show bridge and show tower no longer claim bridge building requires
1296    `workers' (whatever that is), since it doesn't.
1297  * Replace option ROLLOVER_AVAIL by econfig parameter
1298    rollover_avail_max, which is the maximum amount of avail that rolls
1299    over.  Previously, avail was limited after rollover, and even when
1300    ROLLOVER_AVAIL was off.  Fix that.
1301  * Ships weren't always charged mobility for firing with option
1302    NOMOBCOST off.
1303  * Fix shell use of return torpedoes.
1304  * designate no longer complains twice about deity only designations.
1305  * Ensure designate zaps efficiency only when sector type really
1306    changes.
1307  * Fix strength to always report mines to deities.
1308  * Remove option SHIP_DECAY.
1309  * Fix bug in sonar that could crash or yield unpredictable results
1310    near the true origin.
1311  * Fix buffer overflow in flash and wall.
1312  * Fix wall not to strip out first word of message.
1313  * Change market and order to use item types instead of mnemo
1314    characters internally.
1315  * Market now reports sales with full item names instead of single
1316    letter codes.
1317  * buy now requires first argument to be an item name, as documented.
1318  * production command handled production backlog incorrectly, failed
1319    to limit production for production efficiency greater than one,
1320    e.g. agribusiness, and incorrectly limited raw material
1321    consumption.  Also fix a rounding error.  With help from Ron
1322    Koenderink.
1323  * Sector work was accidentally truncated to even.
1324  * Fix coordinate parsing for large numbers when WORLD_X or WORLD_Y
1325    don't divide SHRT_MAX+1.
1326  * Properly diagnose over-long unit lists.
1327  * Rewrite selector code.  Old code let players smash the stack by
1328    supplying too many conditions.  New code properly rejects ambiguous
1329    abbreviations and prefers exact matches.  Selectors with names that
1330    collide with types, like land units' rad and spy, now work.  Selectors with
1331    non-integral values, like land units' att, now work.
1332  * survey used to display hundreds for everything but variables.  Now
1333    it displays hundreds only for values that can be large.
1334  * Rewrite info survey.  Document ability to survey properties other
1335    than items and resources.
1336  * Rewrite info build, since it was inaccurate and poorly structured.
1337  * Fix info fire on required military.  From Marc Olzheim.
1338  * New fairland argument -R to set the PRNG seed.  Print the seed.
1339    This allows you to recreate the same world again.
1340  * New facilities to deal with internal errors.  These crash when the
1341    server is started with -d, which is appropriate for debugging, and
1342    potentially disastrous for running a real game.
1343  * Automated nightly builds.
1344  * Code cleanups.
1345
1346 Changes to Empire 4.2.14 - Mon Mar 22 09:04:12 UTC 2004
1347  * Options NEWPOWER, NEW_STARVE and NEW_WORK are no longer optional.
1348  * Gripe about unknown options in econfig.
1349  * Remove option GRAB_THINGS.
1350  * Utility program files takes new option -f.
1351  * Remove utility programs land, ore and perfect, which don't compile
1352    since 4.2.0 (Oct '98).
1353  * fairland no longer warns when it added resources, but when it
1354    didn't.
1355  * Fallout code could claim destruction of more items than actually
1356    existed.
1357  * Fix recursive resupply (resupply from supply land unit triggering a
1358    resupply of the land unit) when just testing for how much can be
1359    resupplied.  The bug could have led to insufficient resupply.
1360  * Fix recursive resupply not to consume all fuel in supply units.  No
1361    supply units consuming fuel exist in the stock game.
1362  * Limit delivery and distribution thresholds to ITEM_MAX (9999).
1363    Distribution threshold were previously limited to 10000, and
1364    delivery thresholds to 65528.
1365  * Limit items in sectors to ITEM_MAX (9999).  Commands give and buy
1366    used to limit to 9990.  Market transactions and commands explore,
1367    move, drop and fly to 32767.  Limiting in autonav code (order
1368    command) didn't work.  Item delivery used to stop at 9990,
1369    distribution at 9999.  Food growing and sector production used to
1370    stop at 9999.  Grind, assault lunchboxes, demobilization, mine
1371    sweeping and che liberating uw could theoretically attempt to
1372    increase items beyond 65535, which would have been ignored
1373    (destroying the increase).
1374  * Properly saturate fallout at FALLOUT_MAX (9999).  Previously,
1375    fallout increases behaved inconsistently.  Increases beyond 65535
1376    could get ignored, or fallout could saturate at 9999, or it could
1377    overflow at 65536 (that would take quite some nuking, though).
1378  * Properly saturate mines at MINES_MAX (65535).  Previously, a mining
1379    operation that would have gone beyond 65535 was ignored.
1380  * Fix `are we loading or unloading' tests for load, unload, lload and
1381    lunload.
1382  * Fix editing of land unit attack and defense values.  Implement
1383    editing of ship defense values.  Contributed by Ron Koenderink.
1384  * edit now edits che number and target separately.
1385  * Fix edit to properly extend unit files.  Contributed by Ron
1386    Koenderink.
1387  * Major internal reorganisation: Sectors need space for items,
1388    deliveries and distribution thresholds.  To save space, the
1389    ancients invented `variables': a collection of key-value pairs,
1390    missing means zero value, space for `enough' keys.  This
1391    complicates the code, as assigning to a `variable' can fail for
1392    lack of space.  Over time, `enough' increased, and for quite some
1393    time now `variables' have been *wasting* space.  Replace them,
1394    except in unit characteristics, where they are read-only, and will
1395    be replaced later.  This also removes misfeatures like plague
1396    outbreaks silently deleting deliveries.
1397  * Remove disabled commands dissolve and mult.  Remove configuration
1398    parameters minmult and maxmult.
1399  * trade command indexed an array out of bounds when attempting to
1400    display the plague as commodity.  Fix.
1401  * New make goal interix.  Contributed by Ron Koenderink.
1402  * The type selector now prefers an exact match to a partial match.
1403    ?type=sb now selects sb, not sbc, even when sbc happens to be found
1404    first.
1405  * Value of selector sell was always zero, remove it.
1406  * Clean up selector code.
1407  * satellite now displays all sectors owned by other players, and none
1408    else.  It used to display all but sea, mountains, sanctuaries,
1409    wasteland and wilderness.
1410  * map commands now display wilderness and plains owned by other
1411    players as '?'.  Radar commands now display all wilderness and
1412    plains as '?'.
1413  * Fix power timestamp for Windows.  Contributed by Ron Koenderink.
1414  * Make client abort the current command on ^C under Windows, as
1415    everywhere else.  Contributed by Ron Koenderink.
1416  * Command line parser interpreted trailing whitespace as an another
1417    (empty) argument.  Ignore it instead.
1418  * Properly declare stuff in headers, include proper system headers.
1419    Remove all nested external declarations.  Source code is now fully
1420    prototyped.  Enable appropriate gcc warnings.
1421  * Fix several type errors.  Some may have been show-stoppers on big
1422    endian machines where sizeof(long) != sizeof(int).
1423  * Remove pre-ISO C compatibility cruft (hey, it's been only fifteen
1424    years).
1425  * Various portability fixes.  Some bugs may have been show-stoppers
1426    when sizeof(long) != sizeof(int).  With help from Marc Olzheim and
1427    Ron Koenderink.
1428  * Move some code to more logical places.  Remove some unused code,
1429    some of which was hard to port.
1430  * The files program could print error messages to a log file in some
1431    circumstances.  Make it print to stderr.
1432  * deliver can now change direction without changing the threshold.
1433  * deliver now provides appropriate context when prompting for
1434    thresholds.
1435  * Login command play no longer ignores up to two arguments if there
1436    isn't a third one.
1437  * Fix payoff (was broken in 4.2.13).
1438  * Capability fish didn't work together with capability oil.
1439  * Fix and clarify plague outbreak chance in info Plague.
1440  * Fix RES_POP maximum population in info Research.
1441  * Fix info telegram and info announce on ~ escapes.
1442  * Update info Selector to match code.
1443  * Document all undocumented unit capabilities and stats.
1444  * Document submarines' ability to carry landspies.
1445  * Fix info shoot on security units.
1446  * Various small info file fixes.
1447  * Many fixes in the troff macro package for info files.
1448  * Many fixes for translating info files to HTML.
1449  * Many info file markup fixes.
1450
1451 Changes to Empire 4.2.13 - Fri Feb 13 22:12:36 UTC 2004
1452  * Source code reindented and cleaned up somewhat.
1453  * Various small info file fixes.
1454  * Fixed change requiring 254 BTUs even when not charging any
1455    (BLITZ).
1456  * Fixed tactical non-marine missile crash.
1457  * Fixed spy unit detection chance for eff<100.
1458  * Fixed output of sorder.
1459  * `edit' can now work non-interactively.  Contributed by Ron
1460    Koenderink.
1461  * Fixed and extended edit for sectors.
1462  * Fixed use of errno.
1463  * Minor security fix: doconfig now writes example auth entry as
1464    comment.
1465  * Fixed reading of country name and password in client for Windows.
1466  * Replace use of some obsolete non-portable library functions by
1467    portable equivalents.
1468  * designate now warns about redesignated capital only when it
1469    succeeds in redesignating the capital.
1470  * attack could be off by one when reporting required unit mobility.
1471  * Fixed command matching.  Unique prefixes were not always
1472    recognized, and junk suffixes were ignored.
1473  * Removed bestdistpath.  bestpath yields the same results.
1474  * Renamed lstats to lstat for consistency and to match info page.
1475  * Fixed non-portable fd_set * arguments of select().
1476  * New `map' flag `h' to highlight own sectors.  Contributed by Marc
1477    Olzheim.
1478  * Fixed `sabo' reporting damage to player in deity coordinates.
1479  * New option ROLLOVER_AVAIL.  Contributed by Drake Diedrich.
1480  * Fix Windows server shutdown on reading "quit" from stdin.
1481  * Land units now fortify automatically when mobility plus growth
1482    exceeds the maximum.  With code from Marc Olzheim.
1483  * Wandering che are less predictable.
1484  * Land units no longer regenerate mobility faster while it is
1485    negative.
1486  * Fixed emp_client -k.
1487  * No longer allow pirates to ferret out where a ship was built.
1488  * Fixed map commands to reject bmap flags `t' and `r' instead of
1489    turning into bmap.
1490  * Fixed lmine shell resupply.
1491  * News no longer call all sub-launched missiles nuclear.
1492  * Incoming missiles are now reported with coordinates.
1493  * Removed some code that served no purpose except crashing on
1494    Windows. 
1495  * Fixed Mac OSX and AIX build problems.
1496  * Don't resolve player IP addresses for now, because it can crash
1497    with certain versions of GNU libc.
1498  * Fixed recording of lost nukes.
1499
1500 Changes to Empire 4.2.12 - Mon Aug 18 16:54:21 MDT 2003
1501  * Corrected contact information for Wolfpack.
1502  * Sector isn't abandoned until move or explore is complete.
1503  * Fixed multiple cases where return value of getstarg() was
1504    used without being checked which crashed the server.
1505  * Used stdarg.h instead of varargs.h.
1506  * Call only_subs and save result before mission frees attacker
1507    list.  Call with free list could cause server crash.
1508  * Fixed spy sat map for units on opposite side of world wrap.
1509  * Don't sleep in main thread when called from signal handler.
1510  * Fixed error checking in pthreads.
1511  * Properly detach pthreads.
1512  * Pass unlocked mutex to pthread_mutex_unlock.
1513  * Cope with interrupted sleep in pthread empth_sleep to prevent
1514    double update.
1515  * Added server configurable update window.
1516  * Initialized variables passed to setsockopt in accept.c.
1517  * Fixed bug where sharing bmap with uncontacted country crashes
1518    server.
1519
1520 Changes to Empire 4.2.11 - Sun Sep  1 09:54:59 MDT 2002
1521  * Added compile option for the Mac OSX architecture.
1522  * Fixed bug in cargo where unit array was indexed by shp_maxno
1523    instead of lnd_maxno.
1524  * Fixed bug in reject where aborting the command crashes the
1525    server.
1526  * Can't buy land units into enemy headquarters.
1527  * Added sabotage command and commando unit.
1528  * Spies moving by themselves will not trigger interdiction.
1529  * Fixed error in map distance calculation that caused errant
1530    interdiction.
1531  * Ships going under -127 mobility will be set to -127 mob and
1532    not roll over to positive mobility.
1533  * Corrected plane cost in info Maintenance.
1534  * Changed error message for loans rejected for being too big.
1535  * Land units will take casualty damage proportional to their
1536    ability to carry mil.
1537  * Fixed bug where "route i *" crashes server.
1538  * Cannot upgrade planes in orbit.
1539  * Fixed bug in declare with deity aborting command at last
1540    prompt crashes the server.
1541  * Coastwatch notify works with NO_FORT_FIRE option.
1542  * Thread that kills idle connection will charge player for
1543    minutes the player was logged on.
1544  * Removed separate sendeof at end of execute from emp_client
1545    that logged players off on certain platforms.
1546  * Updated player idle counter during read prompt so players
1547    wouldn't be kicked off during long flashes or writing telegrams.
1548  * LOSE_CONTACT will work as advertised.
1549  * Allied units marching through 0 mobility conquered sectors
1550    are charged at least LND_MINMOBCOST.
1551
1552 Changes to Empire 4.2.10 - Mon Aug 13 14:34:39 MDT 2001
1553  * Assault can reinforce own sector when SLOW_WAR is enabled.
1554  * emp_client no longer converts lines into tags but still verifies executes,
1555    pipes, and file redirect match players input.
1556  * Added pboard command to capture enemy planes in your territory.
1557  * Declaring war when at Sitzkrieg won't return relations to Mobilizing.
1558  * Declaring war won't charge money if you're already Mobilizing.
1559  * Added multiple territory fields.
1560  * "show nuke build" displays the proper avail.
1561  * retreating land units will only retreat to sectors owned by the player
1562    that owns the unit.
1563  * added hard cap of "250 + easy" to limit_level.
1564  * education p.e. calculation divides edu constant by etu per update.
1565  * Added patch for Linux for the PowerPC.
1566
1567 Changes to Empire 4.2.9 - Sun Jan  7 15:49:13 PST 2001
1568  * Fixed data corruption when bogus target gets fired upon.
1569  * Increased size of ancillary stacks to prevent stack overflow.
1570  * Changed all references to empire.cx.
1571  * Ships, planes, and land units lost to lack of maintenance will now be
1572    lost.
1573  * No longer allowed to sack deity's capital.
1574  * Accuracy calculation in land unit support was backwards.
1575  * Corrected formula for likelihood of plague in info Plague.
1576  * Fixed files to correctly size map and bmap files from econfig file.
1577  * No longer allowed to add country 0.  It corrupts deity country.
1578
1579 Changes to Empire 4.2.8 - Mon Oct  9 17:35:35 MDT 2000
1580  * Fixed range in radar.t and Sector-types.t.  Maximum range at infinite
1581    tech is 16.
1582  * Changed so that player can't drop civilians into occupied sectors.
1583  * Fixed bug that crashes update if etus/update is less than 8.
1584  * Fixed sometimes not reporting overflights
1585  * Fixing flak for units/ships to be in all sectors as they should be
1586  * Updated order of firing flak in Flak.t.
1587  * Fixed 80% efficient planes on ships must be maintained.
1588  * Fixed initial MOB_ACCESS check thread sleep time was set by an uninitialized
1589    variable. 
1590  * Removed "TEMPORARILY DISABLED" message from mission command for escort
1591    missions.  Escort missions have been re-enabled since 4.0.15.
1592  * Using sonar from the navigate command will print the sonar map.
1593  * Eliminated annoying error messages when using navigate with conditionals.
1594  * Fixed Technology.t to correctly add 1 before taking the logarithm.
1595  * Fixed bug that allowed players to steal opponents maps.
1596  * Put time limit for bidding on market and trade in econfig file.
1597  * Moved hours file information into econfig file.
1598  * Added comments on setting update policy in econfig file.
1599  * Added logging of cases where write extends data file by more than one id.
1600  * Option MARKET is turned off by default.
1601
1602 Changes to Empire 4.2.7 - Fri Mar 10 18:41:04 PST 2000
1603  * Added new NF_SACKED flag to indicate when a country has had it's
1604    capital sacked.  This flag is only cleared when the country actively
1605    redesignates it's capital using the "capital" command, and changed
1606    capital.t to reflect this (no more re-sacking after an update if the
1607    country doesn't reset and repeating until they are out of cash.)
1608  * Added land unit to edit command for planes.
1609  * Added nuketype to edit command for planes.
1610  * Changed so that if the leader of a group of units is a train, the
1611    railways are used for bestpath instead of roadways.
1612  * Changed mission command to also print reaction radius of reserve
1613    missions when set for land units.
1614  * Changed Flak.t to reflect guns having to be loaded onto a land unit
1615    for flak to fire.
1616  * Changed so that visitor countries cannot change their name or password.
1617  * Changed so that you cannot upgrade deity planes, ships or units.
1618  * Changed so that you know where missions are flown from.
1619  * Changed so that the airport owner you fly a mission from is informed.
1620  * Changed so that preperations for takeoff are reported to the owner of
1621    the sector, ship or unit a plane is taking off from if it is not owned
1622    by the owner of the plane.
1623  * Changed so that when a sector reverts during a guerrilla revolt, the
1624    mobility is not reset.  When MOB_ACCESS is not enabled, this used to mean
1625    you would always get at least an updates worth of mobility.  With
1626    MOB_ACCESS, sectors that reverted during the update were useless, since you
1627    got no mobility for a long time.  This fixes that problem, and makes che
1628    more useful as well.
1629  * Changed so that air defense missions don't always send up every plane in the
1630    area, but instead always send up at most two times the number of incoming
1631    planes (for each interdicting country.) This helps to stop 1 plane from
1632    stripping the mobility from 25 air defense planes all at once, but doesn't
1633    limit it to n+1 as there is for regular interception.
1634  * Clarified deity reversion of sectors in Sector-ownership.t
1635  * Clarified production efficiency and added pointer to "show sector cap"
1636    in Product.t
1637  * Clarified nuketype selector for planes in Selector.t
1638  * Clarified that fortifying units does not affect mission status in info
1639    pages for mission and fortify.
1640  * Clarified fuel syntax upon error in fuel command in empmod.c.
1641  * Cleaned up comments causing minor complaints in some builds.
1642  * Fixed bug in loans where you could collect on proposed loans.
1643  * Fixed production command to be more accurate (though it *still* has some
1644    rounding errors, it's better.)
1645  * Fixed potential memory leak in air defense missions.
1646  * Fixed bug where you couldn't pinbomb some commodities if other commodities
1647    didn't already exist in the sector.
1648  * Fixed bug where you couldn't build 0 crew planes without military in the
1649    sector.  (This is different from needing at least 1 military to build all
1650    planes that need a crew which introduced another related bug earlier.)
1651  * Fixed bug where scrapping land unit 0 could cause erroneous transfer
1652    messages to be displayed for deity owned planes.
1653  * Fixed bug where land units on ships in a sector taken over were blown
1654    up or captured.
1655  * Fixed bug where planes on ships in a sector taken over were blown up
1656    or captured.
1657  * Fixed bug in sdump printing origx and origy in deity coordinates.
1658  * Fixed bug in satellites showing wrong sectors (sometimes) when using the
1659    optional arguments.
1660  * Fixed bug in launch showing wrong satellite target (showed asat instead
1661    of the target satellite.)
1662  * Fixed bug where you could gain information not normally available using
1663    the "fire" command to determine sector type information.
1664  * Fixed bug in market/trade creating extra money when loans are taken out.
1665  * Fixed problem with land units not being reported sunk after being sunk
1666    on a ship that was nuked or wastelanded in a sector.
1667  * Fixed problem with Spies.t using "llook" instead of "llookout".
1668  * Fixed problem in lwp/arch.c including jmp_buf.h instead of setjmp.h
1669    on some Linux boxes.
1670  * Fixed problem with plague infection being way too high in cities when
1671    the BIG_CITY option is enabled.
1672  * Fixed bug in edit command getting confused with arguments.
1673  * Fixed bug in ask_move_in_off asking you to move in a negative number of
1674    troops (hey, it could happen. :) )
1675  * Fixed bug in add command not keeping flags or relations initially correct.
1676  * Fixed bug in torpedo command sometimes telling victim about torpedo
1677    sightings even when way out of range.
1678  * Fixed bug in spy command not reporting planes in adjacent sectors, as well
1679    as not formatting them properly when reporting them.
1680  * Fixed bug in satellite with noisy transmission causing a potential
1681    crash of the server with non-100% efficient satellites.
1682  * Fixed potential crashing of the server during satellite display when not
1683    calculating distances to ships and units correctly.
1684  * Fixed bug where planes in non-allied sectors, ships and units could be
1685    used on missions.
1686  * Fixed bug where planes on the trading block could be used on missions.
1687  * Fixed bug where planes and units that get traded don't have mobility set
1688    correctly when using MOB_ACCESS option.
1689  * Fixed bug which made security units virtually useless.
1690  * Fixed access times and mobility not being set right when building planes,
1691    ships, units, bridges and bridge towers when MOB_ACCESS is enabled.
1692  * Fixed minor formatting problem with launch of satellites.
1693  * Fixed minor formatting problem with planes with greater than 999 tech.
1694  * Fixed minor formatting problem with ships with greater than 999 tech.
1695  * Fixed problem with "llook" showing up in TOP info file.
1696  * Fixed problem with lwp Makefile choking on NT builds with clean target.
1697  * General cleanup of potentially ambiguous statements.
1698
1699 Changes to Empire 4.2.6 - Fri Jun  4 05:55:20 PDT 1999
1700  * Added "TECH_POP" as an option where technology costs more to make
1701    as your population grows past 50K civilians.  It is disabled by
1702    default.
1703  * Changed "produce" command to accurately print what the true p.e. is.
1704  * Changed "update" command to display if mobility updating is enabled for
1705    MOB_ACCESS option.
1706  * Fixed bug where toggling off the coastwatch flag also turned off
1707    forts firing on hostile ships coming into range.
1708  * Fixed bug where assaulting your own land would violate any treaties
1709    you have where assaults are a violation.
1710  * Fixed bug where all planes (even those without need for a crew, such
1711    as missiles) needed at least 1 military to build.
1712  * Fixed bug where when a ship sinks during the update due to lack of maint,
1713    land units and planes on it were left stranded.
1714  * Fixed bug where when a land unit dies during the update due to lack of
1715    maint, land units and planes on it were left stranded on it.
1716  * Fixed bug where nukes could be lost due to MOB_ACCESS updating mobility
1717    while arming.
1718  * Fixed bug in "show sector capabilities" not showing products correctly.
1719  * Fixed bug in "show tower build" printing "bridges" instead of "bridge
1720    towers".
1721  * Fixed bug in sectors that don't revolt not showing up as lost items.
1722  * Fixed bug where maps with an X of exactly 200 is not drawing third line.
1723  * Fixed bug where MOB_ACCESS was not updating the mobility just before
1724    the update. 
1725  * Fixed bug in the way treaties are examined and sometimes produce
1726    wrong results.
1727  * Fixed edit to allow creating negative mobility for sectors.
1728  * Fixed setsector to allow creating negative mobility for sectors.
1729  * Fixed bug where when writing out the value of a sector that had
1730    negative mobility and was damaged in combat, mobility was being
1731    set back to 0.
1732  * Fixed Taxes.t info page to reflect that captured civvies only pay
1733    1/4 taxes.
1734  * Fixed Technology.t info page to reflect TECH_POP option.
1735  * Fixed navigate.t info page to reflect that only ships in the fleet
1736    in the same sector that are fired upon have damage divided up.
1737  * Made techlists toggle on by default (so things are shown in order of
1738    technological advances.)
1739
1740 Changes to Empire 4.2.5 - Mon Mar  1 06:42:24 PST 1999
1741  * Added optimization to increasing mobility to check if an object is
1742    already at max mob, just return since it can't be increased.
1743  * Added "-ltermcap" for client libs for hp build (it was already in
1744    hpux build.)
1745  * Added clearing of telegram flags after the update so that the next
1746    telegram is flagged as new and not part of the update.
1747  * Fixed Update-sequence.t to reflect MOB_ACCESS.
1748  * Fixed bug where fortification amount was not being limited to
1749    maximum mobility for land units (land_mob_max).
1750  * Fixed bug where land unit fortification strength was being calculated
1751    by using 127 instead of land_mob_max.
1752  * Fixed bug where scrapping land units was creating military.
1753  * Fixed description of sect_mob_neg_factor in econfig file.
1754  * Increased speed of PT boats.
1755         
1756 Changes to Empire 4.2.4 - Tue Feb  2 05:47:44 PST 1999
1757  * Added check to make military values match up correctly for land
1758    units.
1759  * Fixed bug in doconfig not putting ipglob.c in the right place.
1760  * Fixed bug where attacking deity sectors will violate a treaty.
1761  * Fixed newspaper.t information file.
1762  * Fixed potential bug in fixing up timestamp information when restarting a
1763    game with MOB_ACCESS turned on.
1764  * Fixed bug in explore command not setting mobility to correct
1765    value when MOB_ACCESS was enabled.
1766  * Fixed bug in enlist setting mobility incorrectly sometimes.
1767  * Added doc/backup file for deities which recommends how backups and 
1768    restores of the data directory should be done.
1769
1770 Changes to Empire 4.2.3 - Wed Jan 13 06:02:35 PST 1999
1771  * Added linux-pthreads target and build for using pthreads under Linux.
1772  * Added NO_FORT_FIRE option which disables the ability of forts to
1773    fire when enabled.
1774  * Added more error checking and recovery for corrupt data files.
1775  * Changed alphapos target to alpha-pthreads for better clarity.
1776  * Changed fairland to allow 0 sector distance to other islands and
1777    continents (James Risner)
1778  * Changed "frg" and "dam" land unit stats to "rng" and "fir" so they
1779    match the way ships are described (since this is how they really work.)
1780  * Changed Unit-types.t to now describe "rng" as firing range of a unit,
1781    and "fir" as the number of guns that a land unit fires.
1782  * Cleaned up misc. build warnings.
1783  * Changed artillery damage to be 5 + d6 per gun firing from just d6
1784    per gun firing and updated Damage.t to reflect this change.
1785  * Changed artillery firing ranges to be like ships ranges - divided
1786    by two, and modified them to make more sense.
1787  * Changed artillery units to be "slightly" :) more powerful.
1788  * Changed "cavalry" unit to tech 30 and lowered mil content to 20.
1789  * Changed "artillery" unit to tech 35.
1790  * Changed so that guns are no longer required to build units, and
1791    that guns must be loaded onto artillery units for them to fire.
1792    Client developers note: the show command has not changed yet to
1793    remove the 'guns' column (since guns are no longer required) but
1794    will in a future revision (possibly 4.2.4) so "be prepared" for
1795    "show land build" to change. :)
1796  * Fixed landunitgun to handle all the damage calculations like it should.
1797  * Fixed bug sinking planes when the ship they are on sinks.
1798  * Fixed bug destroying planes when the land unit they are on is destroyed.
1799  * Fixed bug where land units could fire support without enough military.
1800  * Fixed bug in abandoning sectors by marching out a land unit where it
1801    would not let you sometimes (uninitialized variable problem.)
1802  * Fixed gets problem in files.c (James Risner)
1803  * Fixed bug in determinig operations range of a ship.
1804  * Fixed bug in building planes where you could manufacture military.
1805  * Fixed warnings in threading package(s).
1806  * Fixed fire.t to reflect new firing changes.
1807  * Fixed lstat.t to reflect new firing changes.
1808  * Fixed sstat.t to reflect the way things really work.
1809  * Fixed Ship-types.t to reflect the way things really work.
1810  * Fixed the way shutdowns work to hopefully better protect data files.
1811  * Fixed bug in attacking when sector mobility is less than 0 and it would
1812    prompt for attacking with a negative amount of military.
1813  * Fixed typo in fire.t stating wrong parameters for firing from a sector.
1814  * Fixed bug in client when it prompts for country name it was putting
1815    an extraneous end of line on the end that needed to be stripped off.
1816  * Fixed problems running on Linux running on an Alpha machine.  Thanks
1817    to Rocky Mountain Internet and Jeremy A. Cunningham for giving us time
1818    on a machine to work out the bugs.  (Note that the only build that
1819    works on Linux/Alpha is the linux-pthreads)
1820
1821 Changes to Empire 4.2.2 - Sun Dec 27 12:46:34 PST 1998
1822  * Added some code optimizations into the update code when building paths.
1823  * Added some new cacheing for building paths to help speed up updates.
1824  * Added so that you can use "name" and "password" with the change command
1825    as well as "country" and "representative".
1826  * Added flag to power command so that if you are a deity and enter
1827    a negative number of countries you want to see, you see the power chart
1828    for that many countries without power numbers on the next line.  Only
1829    useful for deities that want to see the chart un-broken up by that line.
1830  * Added new functionality to fortify command.  You can now use a negative
1831    fortification value to cause the unit to be fortified and leave at
1832    least that much mobility on the unit. I.E. "fort * -67" will fortify
1833    all units and make sure the mobility of each unit doesn't go below
1834    67.  If the mobility is already below that level (or equal) the unit
1835    is left unchanged.
1836  * Added that the realm command prints "Realm #n is x:x,y:y" after
1837    you set a new realm.
1838  * Added TREATIES option and enabled it by default.
1839  * Added "no depth-charging subs" and "no new land units" treaty
1840    clauses.
1841  * Added Trannie Carter's basic client fix to use fgets instead of gets.
1842  * Changed market and command to only print the lowest priced lot of
1843     each given commodity by default.  If you specify "all" it shows
1844     all lots on the market, and if you specify a specific item, it shows
1845     all lots of that item type.
1846  * Changed start command to only write out sector if it changed.
1847  * Changed stop command to only write out sector if it changed.
1848  * Changed how plane names were changed on server startup if the
1849    PLANENAMES option was enabled.
1850  * Changed move command to use standard askyn function for abandoning
1851    sector prompt.
1852  * Changed plane overlight sightings to take stealth into account,
1853    and if the planes managed to evade all flak and interceptors, they
1854    are not marked as "spotted" over enemy sectors.
1855  * Changed all units with the supply flag to have their marching speeds
1856    based on efficiency since that is their purpose.  What this means is
1857    that supply units and trains are more effective at 100% than at 10%
1858    (just as fighting units are more effective at 100% than at 10%, but
1859     their effectiveness is determined by how well they fight, not how well
1860     they "run away, run away!" :) )
1861  * Changed so that flash toggle is on by default for POGO at setup
1862    time.
1863  * Changed so that when a sector is taken, all land units owned by the
1864    current owner are treated as planes are during takeovers (i.e. there
1865    is a pretty good chance they are blown up, and if not, they change owner
1866    to the attacker and are beat up pretty good.)
1867  * Fixed treaties to work again.
1868  * Fixed bug in taking over land units not using correct pointer (can
1869    cause a crash or data corruption.)
1870  * Fixed collect command to wipe deliver and distribution information
1871    correctly.
1872  * Fixed potential bug in bmap not working when destination bmap has
1873    blank spaces in it.
1874  * Fixed bug in shark command not getting right nation structure.
1875  * Fixed bug in server where empty commands (for example, all spaces
1876    or tabs) were being reported as bogus commands.  They are now just
1877    ignored.
1878  * Fixed bug in scrap not dropping land units off of scrapped units carrying
1879    them.
1880  * Fixed bug in news where boarding of land units was reported backwards.
1881  * Fixed bug in calculating new people when growing them during an update.
1882  * Fixed missing -ltermcap in HP/UX build.
1883  * Fixed setsector to limit mobility to 127 not 255 (255 was being caught
1884    later and being reset to 0 anyway)
1885  * Fixed Sector-types.t to show a '\' instead of a '/' for wasteland,
1886    since that is what it really is.
1887  * Fixed retreat.t documentation to reflect the "retreat upon failed
1888    boarding" flag.
1889  * Fixed bug where satellites were not orbiting the world during the
1890    update.
1891  * Fixed bug in torpedos being too smart.  They knew how to jump over
1892    land! :)  Now the "line_of_sight" routine is used to determine if a 
1893    torpedo has a straight path to the destination.  If it doesn't, the
1894    torpedo no longer jumps over land, but instead slams into it.  This was
1895    an interesting bug because you could torp ships on the other side of
1896    a very skinny island as long as they were in range, even if there was
1897    no sea route possible.
1898  * Fixed bug when pinbombing and you run out of an object to pinbomb (land
1899    units for example) but you still have to pick something to bomb.  For
1900    ships it worked ok (just aborted that it couldn't find any more ships)
1901    and this was fixed for land units and planes.
1902  * Fixed server crashing bug when flying a plane and not carrying
1903    any cargo.
1904  * Fixed bug in move losing commodities when it runs out of room in the
1905    destination sector.  Goods are now attempted to be returned to the
1906    start sector, and apporpriate steps taken if the start sector is no
1907    longer available.
1908  * Fixed march to prompt you before you abandon a sector you own by 
1909    marching out the last land unit.
1910  * Fixed check functions to only check the relevant portions of the structure 
1911    and not the timestamp info that doesn't affect how the object functions.
1912  * Fixed bug in spy command that always told you if a spy unit was in a
1913    non-owned sector.
1914  * Fixed bug in displaying of land unit missions not showing correct land
1915    unit range.
1916  * Fixed bug in wire command where new announcements that you read at
1917    the last second don't get wiped out properly.
1918  * Fixed bug where announcement file could be corrupted by very long lines.
1919  * Fixed bug where bmap was not set when player was told what kind of
1920    sector they were attacking (this was an old abusable bug that was
1921    removed long ago to fix the abuse, and it's been fixed in a non-abusable
1922    way finally.)
1923  * Fixed bug where change command would warn you about monetary and
1924    BTU costs, but not prompt you to break out if you didn't want to really
1925    change your country name.
1926  * Fixed bug in sub-launched nukes that are intercepted being reported in
1927    the news incorrectly.
1928  * Fixed bug in load where you could abandon a sector and not know it by
1929    loading your last civilians or military onto a ship.
1930  * Fixed potential memory leak in autonav code.
1931  * Fixed potential bug where you could possibly determine if a sector is
1932    owned or not using one way plane missions.
1933  * Fixed Damage.t info page to properly show damages for planes and
1934    land unit shelling.
1935  * Fixed deliver.t to include syntax for command.
1936  * Fixed country.t to include syntax for command.
1937  * Fixed bug where ships on orders were not adding radar information to
1938    the bmap during an update.
1939  * Fixed bug where ships on sail were not adding radar information to
1940    the bmap during an update.
1941  * Fixed bestownedpath code to use the bmap properly.  Note this is a very
1942    important bug fix.  When navigating a ship, players are no longer given
1943    free information that they would not normally know.  For example, if you
1944    try sailing your ship off into uncharted areas of your bmap, the bestpath
1945    code will only use as much information as you have on-hand (i.e. your
1946    bmap) to plan out your path for you.  If you have no information on an
1947    area, it just keeps forging on, until bumping into something.  Of course,
1948    after the initial exploration through an area, the bmap will be set and
1949    used for all future sailings through that area.  Harbors and bridges
1950    are still checked for construction worthiness if you know where they
1951    are (i.e. they are on your bmap.) (Overall, what happened before
1952    was that the bestpath code would route your ship around islands that
1953    you didn't even know were there, and you could use various commands
1954    to see how that ship was going to sail during the update and thus you
1955    gained information that you wouldn't normally know.)
1956  * Merged bestpath and bestownedpath and wrote new wrappers, "BestShipPath"
1957    and "BestAirPath" to use it properly.  It is also good to note that
1958    bestownedpath is used to determine paths for ships and for planes, 
1959    and that best_path (which uses the A* algorithm) is used for all land
1960    based paths, and that the two are never interchanged.
1961  * Removed "jet recon" plane (it slipped in during the PLANENAMES conversion,
1962    and RECON was never used before.)
1963  * Removed extraneous "resnoise" and "resbenefit" functions and combined
1964    the two for setresource and setsector commands.
1965
1966 Changes to Empire 4.2.1 - Tue Nov  3 12:56:20 PST 1998
1967  * Fixed problem with global/plane.c not defining last structure element
1968    properly, and thus causing crashes when accessing certain plane
1969    routines.  This happened during the move to make the PLANENAMES option
1970    run-time configurable.
1971         
1972 Changes to Empire 4.2.0 - Thu Oct 29 06:27:15 PST 1998
1973  * Bumped rev to 4.2.0 since this is a major release (the server is now
1974    run-time configurable for just about everything and is released under
1975    the GNU GPL.)
1976  * Put in official licensing information.
1977  * Re-arranged and commented the econfig (Empire Configuration) file.  The
1978    auto-generated "data/econfig" file is now pumped out chock full of
1979    comments (which may or may not be useful.)  Since the server is
1980    pretty much fully run-time configurable (MAXNOC is not, but it gets
1981    a default of 99 anyway) deities will probably be spending more time
1982    in the config file.
1983  * Added server support for building under NT, including mods from
1984    Doug Hay and Steve McClure to get the server building and running
1985    under NT. (This was built using MSVC++ 5.0 on NT 4.0 and command
1986    line "nmake nt")
1987  * Added Doug Hay's ntthread.c implementation for NT threading.
1988  * Added max pop column to "show sector stats" output.
1989  * Added lboard command for boarding land units from sectors.  Only raw
1990    mil can board land units, and only mil and land units aboard the unit
1991    being boarded fight back.
1992  * Added GODNEWS option.  When enabled, the deity giving people stuff
1993    is shown in the news.
1994  * Added bridge tower sector ('@')
1995  * Added BRIDGETOWERS option.  When enabled you can build bridge towers
1996    from a bridge span.  You can then build bridge spans from the tower.
1997    If the tower is destroyed ( <20% eff) bridges connected fall unless
1998    supported on the other side.  You can only build bridge towers in open
1999    water not adjacent to land and other towers.  Expensive.
2000  * Added plains sector ('~') - Max pop is 1/40th regular sectors, and
2001    it is deity creatable only (can't redesignate unless you wasteland it
2002    with a nuke :) )
2003  * Changed "info all" to no longer use printdir, instead it just uses the "all"
2004    info page which contains this information.
2005  * Changed so you can now load up to 2 spy units onto non-land unit carrying
2006    submarines if the LANDSPIES option is enabled.  Useful for sneaking up
2007    to shore and spying on your neighbors.
2008  * Changed so spies unloaded from ships are not given as gifts, they are just
2009    unloaded quietly.
2010  * Changed build command to handle building towers ("build t")
2011  * Changed show command to show tower stats ("show t b")
2012  * Changed reject so you can now reject things from any country except
2013    deity countries (this now includes sanctuary countries and visitor
2014    countries you don't want to deal with)
2015  * Changed ndump to dump nuclear stockpile ID as well.
2016  * Changed flash so that if someone allied to you is either not logged on or
2017    not accepting flashes, you are notified.  This is info you could gain
2018    otherwise since you can see other countries that are allied to you via
2019    players.
2020  * Fixed bug in news command when HIDDEN mods are enabled.
2021  * Fixed distribute command to only write out to the database if we
2022    actually changed the sector (i.e. if we really moved the dist
2023    center, we write.  Otherwise, it makes no point.)
2024  * Fixed threshold command to only write out to the database if
2025    we actually changed the sector (i.e. if we really changed the
2026    threshold, we write.  Otherwise, it makes no point.)
2027  * Fixed - population growth and truncation in "Update-sequence.t" info
2028    file is now clearer
2029  * Fixed the way fortify takes mobility away from a land unit if
2030    engineers are present.
2031  * Fixed bug in buying commodities at the last minute not resetting the
2032    time correctly in all situations.
2033  * Fixed bug in building nukes where it would always ask if you tried
2034    building more than one at a time.
2035  * Fixed bug where if you put (either by building or by transporting)
2036    more than 127 of one type of nuke in a sector, they all got lost. A
2037    negative wrapover sort of thing.
2038  * Fixed ndump to print # of stockpiles dumped.
2039  * Fixed ndump.t to reflect changes
2040  * Fixed bug in build command that didn't account for EOL characters.
2041  * Fixed bug where you could use planes to drop conquered populace
2042  * Fixed bug in distribute command in how it checked for current distribution
2043    sector.
2044  * Fixed pr_flash and pr_inform to no longer send messages if the player
2045    is still in the process of logging in (i.e. not in the PLAYING state)
2046  * Fixed report command output for deities.
2047  * Fixed bug in nuclear damage either taking out submarines when it
2048    shouldn't, or not taking them out when it should.
2049  * Fixed bug in loading units that are carrying units onto other units
2050    (note that it doesn't happen since only HEAVY units can carry other
2051    units and that check works, but that might change some day, and we
2052    don't want units carrying units to be carried by other units, etc. :) )
2053  * Fixed info pages to reflect new sector types.
2054  * Fixed info pages to reflect new spy unit capabilities.
2055  * Fixed show commands to only show trade ships if the TRADESHIPS option
2056    is enabled.
2057  * Fixed build command to only allow building of trade ships if the
2058    TRADESHIPS options is enabled.
2059  * Fixed up some definitions located in many places used for checking
2060    sectors for navigation rights.
2061  * Fixed power.t to correctly describe NEW_POWER formula.
2062  * Made HIDDEN option run time configurable.
2063  * Made LOSE_CONTACT option run time configurable.
2064  * Made ORBIT option run time configurable.
2065  * Made SAIL option run time configurable.
2066  * Made MOB_ACCESS option run time configurable.
2067  * Made FALLOUT option run time configurable.
2068  * Made SLOW_WAR option run time configurable.
2069  * Made SNEAK_ATTACK option run time configurable.
2070  * Made WORLD_X and WORLD_Y run time configurable.
2071  * Made MARKET option run time configurable.
2072  * Made LOANS option run time configurable.
2073  * Made BIG_CITY option run time configurable.
2074  * Made TRADESHIPS option run time configurable.
2075  * Made SHIPNAMES option run time configurable.
2076  * Made DEMANDUPDATE option run time configurable.
2077  * Made UPDATESCHED option run time configurable.
2078  * Made LANDSPIES option run time configurable.
2079  * Made NONUKES option run time configurable.
2080  * Made PLANENAMES option run time configurable.
2081  * Removed SMALL_SERVER stuff (unused baggage)
2082  * Removed trading post sector ('v')
2083
2084 Changes to Empire 4.0.18 - Thu Sep 24 06:54:27 PDT 1998
2085  * Fixed bug in aircombat where planes in flight could intercept air
2086    defense planes and take no damage (i.e. they got to fight twice,
2087    once for free.)
2088  * Fixed bug in freeing memory after performing missions that could crash
2089    the server (it mainly happened after an interdiction mission using
2090    planes and escorts, where some escorts came from airports that didn't have
2091    bombers going up.  Freeing the leftover escorts was crashing the server.)
2092  * Fixed bug where you could load non-existant units if you were allied
2093    with country #0.
2094  * Fixed bug where you could pin-bomb a plane with itself.
2095  * Fixed bug where satellites over a bridge may get killed if the bridge
2096    is sunk.
2097  * Fixed bug where land units on a ship in the same sector as a bridge
2098    that is splashed may get sunk.
2099  * Fixed bug where planes on a ship in the same sector as a bridge
2100    that is splashed may get sunk.
2101  * Fixed doconfig with correct empire site text.
2102  * Fixed major problem with abms not firing, and sometimes crashing
2103    server.
2104  * Fixed bug in land units counting up loaded units wrong.
2105  * Fixed doconfig makefile to have doconfig.c as a dependency.
2106  * Fixed bug in resetting commodities (the comm_uid was not being
2107    properly set.)
2108  * Fixed bug in repaying loans not working correctly (the l_uid was not
2109    being properly set.)
2110  * Fixed bug in buying items from the trading block not allowing you
2111    to due to a perceived change in item status.
2112  * Fixed bug in mfir.c where a bogus input to a target could crash
2113    the server.
2114  * Fixed bug that after you read telegrams new telegrams may not send
2115    an inform message (the old telegram flags were not cleared.)
2116  * Fixed bug where fort support distance calculations are calculated
2117    twice instead of just once.  This bug caused a lower percentage
2118    of support fire than designed.
2119  * Fixed bomb.t to reflect land unit changes.
2120  * Put in some integrity checking for planes returing from bombing runs.
2121  * Added ability to edit land unit that a land unit is loaded on in
2122    edit command.
2123  * Consolidated bridgefall code into "knockdown" function (this code
2124    existed in at least 3 places, and was different in all of them.)
2125  * Subs returning fire are no longer reported in the news.
2126  * Visitor countries can now use the 'motd' command.
2127  * When trying to use a visitor country, if it is in use, you are not told
2128    by whom, just that it is in use.
2129  * Optimized (slightly) support fire from forts not getting supply and
2130    shells if not needed (out of range)
2131  * Updated Education.t
2132  * Modified (increased) chances of hitting mines slightly.
2133  * Removed unused variables from shp_check_mines.
2134         
2135 Changes to Empire 4.0.17 - Fri Jul 31 06:12:21 PDT 1998
2136  * Added ability in edit to change coastal flag for sectors.
2137  * Added ability in edit to edit plague values for ships.
2138  * Added ability for "spy" to report all units/planes not owned by you
2139    that exist in the sector you are spying from.
2140  * Modified naval planes and anti-sub planes.
2141  * Changed so that missiles and bombs that miss their targets cause
2142    collateral damage in the target sector (they have to land somewhere!)
2143  * Changed llook so that non-spy units are required to have at least 1
2144    military personnel on board to see anything.
2145  * Fixed "llookout.t" to reflect change for military requirement.
2146  * Updated Plague.t
2147  * Updated upgrade.t
2148  * Added "lmine" flag for deities to see what sectors have mines in them
2149    (works for sea and land mines, used "lmine" to distinguish it from "min"
2150    which determines mineral (iron) content of a sector.)
2151  * No longer able to pin bomb land units on a ship.
2152  * Land units are required to have at least one military loaded to perform 
2153    a mission.
2154  * Firing land units are required to have at least on military loaded to
2155    be able to fire (or return fire.)
2156  * Spies are not always seen when being pinbombed.  You have to look very
2157    carefully for them (as you usually would.)
2158  * Fixed typo in "Spies.t"
2159  * Added new info about spy ability to spy.t.
2160  * Updated tax information in Innards.t and Update-sequence.t
2161  * Fixed typo in fire.t information about units firing on ships.
2162  * Loading military onto land units now resets fortification.  (You gotta
2163    re-fortify the new guys.)
2164  * Fixed bug where planes that were mine capable could not drop mines if
2165    they were not cargo capable.
2166  * Fixed bug in potentially crashing in update code for nations tech/research.
2167  * Fixed bug in execute putting you into execute mode incorrectly.
2168  * Fixed bug in board not allowing land units to board from 0 mobility 
2169    sectors.
2170  * Fixed bug where interdicted land units that were missed displayed
2171    a "SPLASH! Bombs miss your ships" message.
2172  * Fixed bug in minesweeping sectors where, even with mobility or
2173    having the sweep ability, ships would get hit by mines for doing
2174    nothing.
2175  * Fixed bug in count_land_planes always writing out land units unnecessarily.
2176  * Fixed bug in count_planes always writing out ships unnecessarily.
2177  * Fixed bug in lnd_count_units always writing out land units unnecessarily.
2178  * Fixed bug in count_units always writing out ships unnecessarily.
2179  * Fixed bug in llook that reported units on ships.
2180  * Fixed bug in llook that reported satellites launched over the unit.
2181  * Fixed bug in llook that always reported spies (it should be a 10-100%
2182    chance)
2183  * Fixed bug in anti possibly not saving lost items correctly.
2184  * Fixed bug in planes getting extended range when on missions and the
2185    op center is not where the plane is located.
2186  * Fixed bug in land unit defensive strength not being based on the eff of
2187    the unit when calculating odds of a battle.
2188  * Fixed bug in board not reporting consistant information.
2189  * Fixed bug in the way land unit casualties were being taken.
2190  * Fixed bug where land units on ships could return fire.
2191  * Fixed bug where land units on other land units could return fire.
2192  * Fixed bug where land units on other land units could fire.
2193  * Fixed bug in attacks/assaults/boardings spreading plague incorrectly.
2194  * Fixed bug in updating plague for ships.
2195  * Fixed bug in updating plague for land units.
2196  * Fixed bug in updating plague for attacking/defending land units.
2197  * Fixed bug where you couldn't pin-bomb land units that were < 20% eff.
2198  * Fixed bug which revealed the owner of torping subs when on a mission.
2199
2200 Changes to Empire 4.0.16 - Fri Jun 12 08:52:06 EDT 1998
2201  * Added patches sent in by Steve McClure, Sverker Wiberg and Curtis
2202    Larsen.  They are described with other changes below.
2203  * Fixed bugs in the following commands that allowed two cooperating
2204    countries to create infinite numbers of any commodity and/or cash
2205    at any time (race conditions in the server): build, board, deliver,
2206    designate, distribute, explore, fuel, improve, load, ltend, mobquota,
2207    move, name, order, reset, sail, sell, set, tend, territory, test,
2208    threshold, torpedo, transport, unload
2209  * Fixed bug in board command giving out too much information about a
2210    non-owned sector when it shouldn't be.
2211  * Fixed bug in board command when firing on a sector in defense before
2212    checking mobility.
2213  * Fixed bug in rangeedit allowing plane(s) to possibly be stored wrong.
2214  * Fixed bug in launch allowing plane to possibly be stored wrong after
2215    launch.
2216  * Fixed bug in lrangeedit allowing land unit(s) to possibly be stored wrong.
2217  * Fixed bug in morale allowing land unit(s) to possibly be stored wrong.
2218  * Fixed bug in arm/disarm allowing a plane to possibly be stored wrong.
2219  * Fixed bug in loan sometimes not writing database correctly.
2220  * Fixed bug in collect.
2221  * Fixed bug in dropping mines from land units.
2222  * Fixed crashing bug in sector_strength routine when oceans take
2223    collateral damage.
2224  * Fixed bug in transport possibly decrementing too much mobility when
2225    moving a nuke.
2226  * Fixed some little warning type messages building with gcc -Wall.
2227  * Fixed problem compiling lwp threads with glibc6 under Linux.
2228  * Changed flash so that players can always flash deities.
2229  * Changed players command to always show deities and visitor countries
2230    that are logged on, and only show allied countries for normal player
2231    countries.
2232  * Fixed bug in anti command not stopping sectors when they revolt.
2233  * Fixed bug in set_coastal function not counting bridge spans as
2234    water based sectors (after all, the land is still a coastal sector,
2235    even if next to a bridge span.)
2236  * "flash" and "players" is re-enabled for visitor accounts.
2237  * Fixed bug in bleeding of technology and research to other players.
2238  * Fixed bug in explore not spreading plague correctly.
2239  * Fixed bug in move not spreading plague correctly.
2240  * Fixed bug in deliver not spreading plague correctly.
2241  * Fixed bug in distribute not spreading plague.
2242  * Included "postresults" script in the scripts directory which can be
2243    used to auto-post daily power chart/announcements to rec.games.empire.
2244  * Updated Plague.t
2245  * Updated Innards.t
2246  * Removed OVCONFIG from build.conf, and patched doconfig to match.
2247  * doconfig is only run if needed
2248  * emp_client and emp_server are only linked if needed
2249  * Added list of disabled options to the version command.
2250  * Fixed bug in survey allowing you to see hidden variables.
2251  * Re-enabled escort missions due to above bug fix most likely the problem.
2252  * Changed one instance of "restrict" to "restricted" in bestpath.c.  For
2253    some reason, this was causing a problem on one of the Linux builds (??).
2254  * Added "show sector capabilities" functionality (this didn't exist
2255    before.)
2256  * Fixed bug in neweff not reporting stopped sectors.  It now (correctly)
2257    reports them as not changing eff.
2258         
2259 Changes to Empire 4.0.15 - Wed May 20 12:35:53 EDT 1998
2260  * Fixed the spelling of Markus' name in CHANGES4.0 files.
2261  * Added Markus' patches/fixes.  Some are detailed below.
2262  * Added 'mipsultrix.gxx' build target.
2263  * Fixed doconfig to write ipglob.c in the correct target area.
2264  * Fixed a bunch of type casting that needed to be done correctly.
2265  * Only print out last connect by for non-visitor accounts.
2266  * 'players' command is only useable by non-visitor accounts.
2267  * Fixed ask_off in attsub.c to not print out allied sector mil counts
2268    when attacking from neighboring sectors.
2269  * Fixed targetting of che when taking over sectors.
2270  * 'anti' command only fights che that are targetted at you.
2271  * Fixed update not updating timestamps of objects (ships, planes, land
2272    units, sectors.)
2273  * Fixed bug delivering conquered populace.
2274  * Fixed potential bug scuttling ship with land units on it.
2275  * Moved heavy bombers to tech 90.
2276  * Fixed bug in setsector telling the deity coordinates of sectors being
2277    granted/taken away.
2278  * Fixed bug in setting budget of enlistment sectors to 0.
2279         
2280 Changes to Empire 4.0.14 - Wed Apr  8 08:47:54 EDT 1998
2281  * Fixed time_t problem in common/log.c
2282  * Fixed bug in headlines
2283  * Replaced vaxultrix build flags with proper vanilla ones.
2284  * Fixed bug in update/prepare.c (sometimes not getting charged for
2285    mil on units and ships)
2286  * Fixed bug in printing of "No ship(s)" twice in cargo command when no
2287    ships were selected.
2288  * Temporarily disabled escort missions until a fix is found. They are
2289    randomly crashing the server.  
2290  * Fixed morale.t to reflect that retreat percentage is based off of
2291    morale_base and not 75.
2292  * Fixed bug in bridgefall where planes and units on ship in a sector
2293    that has a bridge collapse are being sunk.
2294  * Fixed bug in update/produce.c when a sector overflows it's capacity
2295    on production.
2296  * Fixed bug in produce command reporting incorrect costs (sometimes).
2297  * Land units on ships will now try to draw supply from the ship they
2298    are on.
2299         
2300 Changes to Empire 4.0.13 - Mon Mar  2 11:04:28 EST 1998
2301  * Fixed bug in distribute when world sizes are other than 64x32
2302  * Fixed bug in getcommand (not really a bug, just made it work like
2303    it used to so that the players command is useful for deities
2304    again)
2305  * Fixed building of POSIX threads on Alpha running Digital Unix.
2306  * Fixed line_of_sight prototype in sona.c
2307  * Fixed fairland not to conuse stupid C++ compilers.
2308         
2309 Changes to Empire 4.0.12 - Tue Feb 24 11:27:31 EST 1998
2310  * Fixed client build on linux (whoops)
2311         
2312 Changes to Empire 4.0.11 - Tue Feb 10 10:53:10 EST 1998
2313  * AIX build seems to only work with gcc right now (but at least that works)
2314  * Vax Ultrix (vaxultrix) build should work now (hopefully) out of the box.
2315  * Took out autosupply of airports when bombing or dropping shells.
2316     (This was the only commodity this was done for, and it was creating
2317     problems since supply is still somewhat broken somewhere)
2318  * Included Curtis Larsen's, Markus Armbruster's and Sverker Wiberg's
2319     submitted patches, which collectively included cleaning up most
2320     of the server prototypes and bogus declarations.  Many thanks.
2321  * Increased incoming command buffer to 1024 from 512 bytes
2322  * Increased the # of parsed arguments from 64 to 100
2323  * Fixed bug where spies were not dying when damaged.
2324  * Fixed bug in HIDDEN mods in declare command not printing country # of
2325     uncontacted country correctly (or at all as a matter of fact)
2326         
2327 Changes to Empire 4.0.10 - Mon Aug 18 12:34:58 EDT 1997
2328  * Fixed bug where fleets were being interdicted but the damage was being
2329     spread to ships not in the same sectors.
2330  * Fixed but in market when buying goods without enough cash.
2331  * Planes in orbit over airports are no longer fixed up during updates.
2332  * Planes in orbit are no longer damaged when the sectors they are over
2333     are damaged.
2334  * Planes on ships are no longer damaged when the sectors they are in are
2335     damaged, unless the ship is damaged.
2336  * Fixed problem with no newline after partisan activity telegram in
2337     anti.c
2338  * Fixed problem in chan.c printing out change costs incorrectly.
2339  * Fixed problem in dispatch.c screwing things up on redirection.
2340  * financial should now handle 6 and 7 digit loans.
2341  * Planes on ships that are in sectors that revolt are no longer taken
2342     over.
2343  * Fixed bug in powe.c where the power report was mis-calculating the
2344     efficiency of planes.
2345  * Fixed doconfig.c to use STDC instead of multi-level #ifdefs.
2346  * Fixed bug in parse.c that was screwing up double quotes in conditional
2347     arguments.
2348  * Military in a sector now only produce up to maxpop, just like civvies
2349     and uw's.  No more stuffing 6K mil into a mountain to max it out.  You
2350     can still hold more mil there over the updates, but the extras just
2351     won't produce anymore.
2352  * Fixed bug in shark that allowed you to shark up loans even if you couldn't
2353     cover the debt.
2354  * Fixed bug in day of week calculation for server up time in common/keyword.c
2355     that is used for gamedays.
2356  * Documented what happens to standing military in collect.t when you collect
2357     a sector.
2358  * Documented mountains only holding and using 1/10th of the normal sector
2359     population in Sector-types.t.
2360  * Fixed documentation on ship's firing ranges in fire.t to be less 
2361     ambiguous.
2362  * Updated nukes in nuke.t
2363  * Added apropos command (thanks to Mike Wise)
2364  * Added case-insensitivity to the info command (thanks to Mike Wise).  If
2365     there are two files of the same name, and you don't get a complete match,
2366     then whichever file is found first in the directory is used.
2367  * Changed documentation in wantupd.h
2368         
2369 Changes to Empire 4.0.9 - Sat Apr 19 23:01:51 EDT 1997
2370  * Fixed dump info pages that were getting formatted funny.
2371  * Fixed improve info page.
2372  * Fixed bug in allied planes/units not moving when the carriers move.
2373  * Fixed bug in satellite output for <100% satellites.
2374  * Fixed bug in load/unload not putting a newline after some unloadings
2375     in allied sectors.
2376  * Fixed bug in harden not printing correct values.
2377  * Fixed bug in creating/moving/etc. nuclear stockpiles.
2378  * Fixed bug where subs were trying to torp commodities moving on land when
2379     on interdiction.  (This was funny ;-) )
2380  * Fixed bug in "move" where you could keep a sector even after someone else
2381     took it from you.
2382  * Budget now correctly reports the # of units being built.
2383  * Mil on units & ships are now reported as normal military costs, not
2384     ship or unit maintainence costs in budget.
2385  * Fixed bug in update code where taxes could potentially be initialized
2386     incorrectly (affected budgets too.)
2387  * Fixed bug in nat.h header so that it uses SCT_MAXDEF instead of a fixed
2388     number (that was incorrect.)
2389  * Fixed bug with trains - they needed the xlight flag to carry planes.
2390  * Revamped and improved flak.
2391  * Added "Flak" info page.
2392  * Added "Fallout" info page.
2393  * Fixed repay/offer/consider to all need a capital to be used.
2394  * Fixed bug with air defense missions not running when not AT WAR.  They now
2395     fly when HOSTILE.
2396  * plane/ship/unit short names are all now 4 characters, padded if needed.
2397  * pdump/sdump/ldump/ndump now just print the short name for the type.
2398  * sdump now has ship name at very end in quotes.
2399     These were done at the request of some client developers for ease of use.
2400  * Fixed extra space in the dump output.
2401  * Fixed fallout - not quite so nasty anymore.
2402  * Fixed fallout - things on ships/units are damaged now.
2403  * Fixed and balanced planes/ships/units/nukes in conjunction with each other.
2404  * Fixed bug in doconfig.c calculating wrong s_p_etu sometimes.
2405  * Fixed bug where harbors weren't being used to resupply.
2406  * Fixed bug where selling units loaded with planes and units wouldn't take
2407     the loaded planes or units - they are now dropped.
2408  * Fixed bug in arm/disarm where you could arm/disarm planes on the trading
2409     block.
2410  * Deities can now remove things from the trading block/market.
2411  * Fixed bug in "work" not charging engineers enough mob.
2412  * Fixed bug in "work" not adding teardown and buildup avail costs together.
2413  * Subs no longer need mobility to return fire when fired upon.
2414  * Fixed "reset".
2415  * Fixed bug in "trade" allowing 2 players to pay for the same item, but only
2416     the last player gets it.
2417  * Fixed bug where you couldn't launch missiles from allied ships or sectors.
2418  * Fixed bombing so that pin-bombing can cause collateral damage too.
2419  * Fixed sector damage to damage planes there too.
2420  * Fixed flag in lload so that it doesn't always print if not needed.
2421  * Fixed "sell.t" info page.
2422  * Fixed bug in "buy" where not entering the price correctly could cause
2423     a crash.
2424  * Fixed "sell" so that at least 1 mobility is required to sell goods.  Keeps
2425     the midnight "raid and sell" abuse down. :)
2426  * Fixed "show plane cap" to move the last column over 1 more where it should
2427     be.
2428  * Fixed timestamps to be updated for units/planes on ships/units that move,
2429     since those units/planes move too.
2430
2431 Changes to Empire 4.0.8 - Wed Feb 26 23:00:51 EST 1997
2432  * Fixed bug in nstr_exec that was wiping out the previous conditional.
2433     This was major because it affected timestamp values which are more
2434     than 65535.
2435  * Fixed bug in sdump.c for typo in reporting the trade ships origin.
2436         
2437 Changes to Empire 4.0.7 - Mon Feb 24 22:48:54 EST 1997
2438  * Fixed bug in aircombat.c when calculating the air combat odds.  Negative
2439     numbers were screwing things up good...
2440  * Fort sector's coordinates are no longer printed when auto-firing at
2441     ships.
2442  * Subs can now surface and fire deck guns (again)  They can also be
2443     hit by return fire when doing so.
2444  * Fixed bug in setting of plane attack and defensive values so that
2445     negative numbers don't keep going further negative.
2446  * Fixed incorrect military control calculation in the sell command.
2447  * Trading posts are no longer required to sell goods from.  You can sell
2448     from harbors and warehouses now too.
2449  * Spy now prints out the owner of land units you see when spying.  Before
2450     this was assumed to be sector owner, which is no longer true.
2451  * Loading land units now prints out what was loaded onto each unit,
2452     just as loading ships do.
2453  * Added fallout, coast, c_del, m_del, c_cut and m_cut to dump output.
2454  * Added "GO_RENEW" option.  This option means that gold and oil resources
2455     are renewable.
2456  * Added "lost_items_timeout" config variable, and set the default to
2457     48 hours.  This determines how long lost items stay in the lost items
2458     database.
2459  * Fixed land unit names to be more consistent.
2460  * Fixed mission.t info page.
2461  * Fixed bug in that if mission_mob_cost was set to 0, even negative
2462     mob units should be able to be put on missions.
2463  * Removed restriction on things needing to be at least 60% to be put
2464     on a mission.  Note that while you can put them on missions at < 60%
2465     now, when trying to do the mission, it still checks the eff.  This
2466     is to help in automatic setup (build, put on mission, forget) instead
2467     of having to come back repeatedly.
2468  * Spies caught in Neutral or Friendly countries cause the Neutral or
2469     Friendly country to go Hostile towards the owner of the spy.
2470  * Tweaked ammunition numbers for artillery units.
2471  * No more automatic declarations of War should be made.  You will go 
2472     hostile, but since going to war doesn't increase your countries
2473     defenses, and is purely political, it is left to the player to go
2474     that final step.
2475  * Fixed bug in trade that wasn't incrementing the time if last second bidding.
2476  * Fixed bug in "lmine" that was crashing the server if the land unit was
2477     out of mobility.
2478  * Fixed buy so that if you specify a product, you can only bid on that
2479     type of product.
2480  * Added "lost.t" info page.
2481  * Added "lost items" database (EF_LOST)
2482  * Fixed bug where you could move in allied forces after an attack if they
2483     bordered the victim area.
2484  * Fixed nstr_comp to deal with values > 16 bits coming in from
2485     client for comparisons.
2486  * Changed last minute market/trade timers to increment 5 minutes.  2 minutes
2487     was too quick.
2488  * Fixed decode in lib/common/nstr_subs.c to deal with NSC_TIME better.
2489  * Commented out the logging of the market checking in server/marketup.c,
2490     lib/commands/buy.c and lib/commands/trad.c  It was generating lots of
2491     pretty much useless data that made parsing the server.log file more
2492     more difficult than it needed to be.
2493  * Fixed crashing bug in ldump.
2494  * sdump, ldump, ndump, pdump and dump now print out the current
2495     timestamp on the "DUMP XXX" line.
2496  * Fixed denial of service bug in lib/player/accept.c in
2497     player_find_other function.
2498  * Fixed bug in shark reporting incorrect buyer of the loan.
2499  * Fixed bug in sdump.c (case 0 should have been case 10)
2500  * ldump and sdump now always print the fuel column if asked for,
2501     even if opt_FUEL is turned off.  In the case that it is turned
2502     off, the fuel is listed as 0.
2503  * Added "timestamp" field, which is updated every time an item is
2504     changed.
2505  * Fixed up the Clients.t info page.
2506  * sdump now prints trade ship building origin.
2507  * sdump now always prints name even if SHIPNAMES isn't defined.  If
2508     it is not defined, then the name is empty.
2509  * Added "timestamp" to info/Concepts/Selector.t
2510  * Added some more relevant info to info/Server/Empire4.t
2511  * Fixed Infrastructure.t info page to reflect the fact that infrastructure
2512     is no longer torn down when a sector is re-designated.
2513  * Fixed sell.t to more accurately reflect the time-delay market.
2514  * Fixed read.t and wire.t to reference accept and reject.
2515  * Fixed reject.t not referencing accept command.
2516  * Fixed collect.t to more accurately reflect what goes on when collecting
2517     sectors.
2518  * Fixed financial.t to reflect defaulted loans.
2519  * Fixed dump.t, sdump.t, ldump.t, ndump.t, pdump.t to reflect new
2520     timestamp info.
2521  * Fixed "census.t" (had incorrect reference to "info syntax" instead
2522     of "info Syntax".
2523
2524 Changes to Empire 4.0.6 - Thu Jan 16 11:33 EST 1997
2525  * Increased damage from depthcharges because on increased damage from
2526     torpedos.  Sub frange decreased to be more balanced with destroyer frange.
2527  * Intelligence reports (spy) on units will now report the estimated number
2528     of mil on the unit.
2529  * Fixed equation for ship visibility so it will drop as tech increases.
2530  * Added new commands sdump, ldump, pdump, and ndump to dump data on ships,
2531     land units, planes, and nukes.
2532  * If fields are provided, dump will only supply those fields requested.
2533  * Decreased speed of subs.
2534  * When options NO_LCMS or NO_HCMS are set, those commodities are no longer
2535     required for infrastructure improvements.
2536  * Units that lose an assault or a boarding attempt from a ship will no
2537     longer swim back to the ship they came from.
2538  * Units that take extra casualties will no longer lose all their mil at
2539     once.
2540  * Infrastucture is retained when redesignating a sector.
2541  * Dieing spies will no longer crash the server.
2542  * Units, planes, and ships must have mobility to perform missions.
2543  * Units on ship being scrapped are transferred to harbor.
2544  * Food is no longer autoloaded onto units when they are built.
2545  * Fixed show plane stat to show correct range.
2546  * Infantries now take damage at same rate as casualties.
2547  * Fixed bug with hap_fact.  Having more happiness now helps with fighting
2548     che.
2549  * Fixed anti to write back target country so che will continue to fight
2550     when they survive.
2551  * Fixed llookout to show correct estimate on number of mil on unit.
2552  * Added buildable architecture "hp".  This type will build the server on
2553     a HP/UX machine using the standard compiler instead of gcc.
2554
2555 Changes to Empire 4.0.5 - Thu Dec 12 10:28:48 EST 1996
2556  * Fixed bug in update/distribute.c where pathcost was not being called with
2557     the MOB_ROAD argument (and thus distribution costs could be GREATLY
2558     affected.) - Thanks Ice!
2559
2560 Changes to Empire 4.0.4 - Mon Dec  9 11:00:00 EST 1996
2561  * Fixed Solaris port using gcc.
2562  * Fixed doconfig.c to create directories with right modes.
2563  * Fixed install macros in makefiles to move binaries to the right
2564     places.
2565         
2566 Changes to Empire 4.0.3 - Wed Dec  4 22:46:53 EST 1996
2567  * Added HP/UX port.
2568  * Fixed doconfig.c (put exit(0) at the end of main.)
2569  * Fixed improve.c (moved the prompt[] string outside the fcn.)
2570
2571 Changes to Empire 4.0.2 - Mon Oct 14 12:26:40 EDT 1996
2572  * Put in LND_MINMOBCOST in land.h
2573  * Put in change in lnd_mobcost in lndsub.c
2574  * Put in new nuke costs in nuke.c
2575  * Put in fix so that total work can only be done by the max pop. No more extra
2576     civvies tossed in will do it anymore in human.c.
2577  * Put in fix for src/util/Makefile - beefed it up.
2578  * Put in fix to show where your ship is when it gets shelled in mfir.c.
2579  * Changed infrastructure of roads from .040 to .020 (122 instead of 150 in
2580     common/move.c)
2581  * Fixed Update-sequence.t.
2582  * Put in fix for mobcost bonus for 0% highways.
2583  * Fixed stop.t
2584  * Fixed commodity.t
2585  * Spruced up torpedo damage somewhat. :) :)
2586  * Fixed "assault bmap bug" in attsub.c
2587  * Fixed Produce.t (bars cost)
2588  * Changed mountains to get an automatic "2" for defensive bonus in attsub.c
2589  * Fixed consider.t
2590  * Fixed repay.t
2591  * Fixed offer.t
2592  * Fixed "offer" and "consider" not being legal commands in player/empmod.c
2593  * Fixed Damage.t
2594  * Fixed sstat.t
2595  * Fixed lstat.c, pstat.c and sstat.c
2596  * Fixed cutoff command in cuto.c
2597  * Fixed attack value in attack_val in lndsub.c
2598  * Fixed lload in commands/load.c
2599  * Fixed defense_val in lndsub.c - Made it a minimum of 1, so that units will
2600     always fight until dead or retreating.  0 makes them get stuck. 
2601  * Fixed update/deliver.c - no delivery of non-oldowned civvies (or anything
2602     else for that matter.)
2603  * Fixed llook in commands/look.c
2604  * Fixed che bug in subs/nstr.c
2605  * Fixed bug in strv.c by overcompensating by 1 food per sector (minute amounts
2606     of people would starve.)
2607  * Fixed update/human.c - feed_people rounding problems (I hope.)
2608  * Fixed morale problem in update/land.c
2609  * Fixed count_bodies in attsub.c
2610  * Fixed lnd_mobcost.
2611  * Fixed subs/land,plane,ship.c to handle sunken units and planes correctly.
2612  * Fixed interest rate in commands/offe.c
2613  * Fixed bug in buy.c.
2614  * Put in DEFENSE_INFRA soption o you can turn on/off the use of the defensive
2615     infrastructure.  When off, the defensive infrastructure is the same
2616     as the sector efficiency, and you can't improve it.  This is OFF by
2617     default.
2618  * Fixed Empire4.t
2619  * Added Wolfpack.t
2620  * Land units are now built with a default reaction radius of 0.
2621  * Changed name of lt artilleries to "lat" from "lart" so you can now build
2622     "lar"s again.
2623  * Lowered the speed and firing range of pt boats.
2624  * Lowered the initial att strength of cavs from 1.5 to 1.3 (they were TOO
2625     powerful.)
2626  * Changed the max mob gain defaults of units/planes to 1.0 and ships to 1.5
2627     (This is * ETU_RATE, so it is equal to ETU_RATE for units/planes and
2628      1.5 * ETU_RATE for ships.)
2629  * Conquered civvies only pay 1/4 taxes.
2630  * Railways don't get torn down when you rebuild sectors anymore (but roads
2631     and defenses do (if enabled.)
2632
2633 Changes to Empire 4.0.1 - Wed Aug 28 11:35:40 EDT 1996
2634  * Added "extern double tradetax" to check_trade in trad.c
2635  * Improved description of data directory in build.conf
2636  * Fixed bug in attacking land units that retreat so they now get
2637     charged mobility for attacking.
2638  * Fixed dump to report road, rail and defense of a sector at the end.
2639  * Fixed doconfig bug in not checking the right directory to see if the
2640     "data" directory existed or not before trying to create it.
2641  * "change" now works for sanctuary countries.
2642  * Fixed the description of "sinfrastructure".
2643  * Added more info to "Infrastructure".
2644  * Units/planes are no longer reduced to 75% when bought from the trading
2645     block.
2646  * Supply units were slowed down to the speed of infantry units.
2647  * Trade-ship payoffs have been lowered to 2.5, 3.5 and 5.0
2648  * Bars interest is up to $250 per 1K again.
2649  * Civ taxes were raised back up to a 10:1 mil/civ tax ratio (was 20:1)
2650  * Fixed various info pages.
2651  * Fixed bug in people not getting truncated when broke (this was thought
2652     to be fixed, but wasn't. Now it is, dammit!)
2653  * Fixed bug with units marching across oceans (scuba gear not included. ;-) )
2654  * Market/trade taxes and trade ship payoff figures were added to version.
2655  * "cede" has been removed as a default command.
2656  * Makefile rule was fixed for depend build.
2657  * Fixed bug in mapdist not taking world edges into account nicely enough.
2658  * Added a "scuttle" order for autoscuttling trade ships.  Makes using them
2659     easier.  Cleaned up scuttle code while in there.
2660  * Fixed bug with scuttling a ship with units on it not scuttling the units
2661     too.
2662
2663 Changes to Empire 4.0.0 - Wed Aug 21 1996
2664  * Initial Wolfpack release - Long live the Wolfpack!!!!
2665  * Cleaned up the build environment.  Now all that is needed is to edit the
2666     build.conf file, answer the questions there and type "make <arch>" to
2667     build for a specific architecture.  Thus, no more reliance on gnumake
2668     or special shell scripts.
2669  * We are now shipping the pre-built info pages with the server for those who
2670     Don't want to build them.  You can also still just type "make" and have
2671     the info pages build, but it doesn't completely work (i.e. rebuild new
2672     Subjects) if you don't have perl5 installed.
2673  * Put in the "help" command that does the same thing as "info".
2674  * Removed C_SYNC.  This is done for 2 reasons.  1) None of us like it or
2675     wish to support it.  2) We envision a better scheme for doing similar
2676     things will come along.
2677  * Put in MOB_ACCESS - This allows real-time updating of mobility.
2678  * Put in MARKET - This is the time-based market (yes, still teleports,
2679     but it's not as bad as it was.)
2680  * Lots of the documenation has been updated, but there is more to do.
2681  * Added NO_LCMS, NO_HCMS and NO_OIL options.  When any of these options are
2682     enabled, you don't need any of that type of material to build things.
2683     If NO_HCMS is enabled, you don't need HCMS to build bridges, you need
2684     lcms.  If both NO_HCMS and NO_LCMS are enabled, then you don't need 
2685     any materials to build a bridge.
2686  * There is no mobility cost for assigning missions.  But, there is also
2687     no longer any benefit for being on a mission either.
2688  * Damage is the same for all commodities (people too.)  This means you
2689     can deity shell/bomb sectors again.
2690  * Units are now dependant on tech.  What this means is that their statistics
2691     now increase with tech.  In addition, there is only 1 type of each basic
2692     unit now (i.e. just "cavalry" instead of "cavalry 1", "cavalry 2", etc.)
2693     This reflects the idea that as you learn more, you learn how to not only
2694     build better units, but you learn to build units better. :)  This also
2695     opens the door for a "lupgrade" command along the same lines as the
2696     "upgrade" command for ships.
2697  * Units now have a minimum mob cost for attacking a sector.  Marching
2698     mob costs have not changed.
2699  * Starting units have been removed.  This means that at the beginning, people
2700     may live a little longer since their neighbor can't come visiting quite
2701     as quick.
2702  * Shells are no longer required to build units.
2703  * Mil are no longer required to build units.
2704  * Mil are no longer an intrinsic part of a unit.  They are now a loadable
2705     commodity.  The way a unit's defense/att bonuses work now are
2706         attack = (att * mil * eff)
2707         defense = (def * mil * eff)
2708     In addition, when a unit takes damage, both the eff and the mil go
2709     down.  You can quickly toss in new hacks, but you need to wait to repair
2710     the unit at the update.  Thus, you can now look at unit's efficiency
2711     as their training.
2712  * You need at least 1 mil on a unit to march it (spies are the exception.)
2713  * Units always react if in range and they have the mobility, no matter
2714     what their efficency.
2715  * Units may now march anywhere - in your own sectors, deity owned sectors
2716     or allied sectors, with 1 exception, spies.  Also, your units can get
2717     trapped if your ally declares non-alliance with you while your units
2718     are still in his country.)
2719  * Units always march at their speed, efficiency doesn't matter.
2720  * LANDSPIES was added - This creates land unit based spies.  Spies may march
2721     anywhere, with a chance of getting caught (except in allied territory.)
2722     See "info Spies" for more info on them.
2723  * Planes may now be based out of allied airports.  Landing planes on
2724     ships/sectors you do not own no longer changes thier owner.  You can only
2725     land on owned/allied sectors/ships, and you may only
2726     fly/bomb/para/recon/drop from owned/allied sectors.  So, if a country
2727     you are allied with goes hostile at you, your planes are now stuck there.
2728     Note that if you are using an allied airport, their commodities get
2729     sucked up, not yours (obviously.)
2730  * Planes are now tech-based.  Their statistics increase as their tech
2731     increases.  Deleted extraneous planes.
2732  * There is a new toggle, "techlists", which allows you to see what you
2733     can build/stats/capabilities sorted by tech instead of groupings.
2734  * Ships are now tech-based.  Their statistics increase as their tech
2735     increases.  Deleted extraneous ships.
2736  * Che can now be lessened by making happiness.  If you have more happiness
2737     than your conquered populace, they don't fight as hard or recruit as
2738     much.  If you have less than them, they fight harder and recruit more.
2739     It's not much though - it ranges from 2.0 in your favor to only 0.8 
2740     against you (whereas it was always 1.0 before.)  So, it definitely
2741     favors the attackers to make lots of happy now.
2742  * Bridgeheads can only be built on coasts.
2743  * Players command was fixed so you only see allies, and don't get
2744     approx #'s of players anymore.
2745  * POSIX threads support has been added.
2746  * The attack bmap bug has been fixed.
2747  * BTUs regenerate 3 times faster now.
2748  * GRAB_THINGS is off by default.
2749  * Big nuclear bombs are back, and FALLOUT has been fixed and enabled
2750     as a default (you couldn't make wasteland before with FALLOUT, now
2751     you can.)
2752  * You can now deliver military and civilians.
2753  * Added SHIP_DECAY option - off by default (turns off ships decaying out
2754     at sea if not enough mil.)
2755  * The reverting owner bug has been fixed in territory, thresh, dist
2756     and deliver.  There are probably more, and when found, will be fixed.
2757  * The "sectors don't starve when stopped or broke" bug has been fixed.
2758  * The "people never get truncated" bug has been fixed.
2759  * Added infrastructure to sectors.  What this means is that a sector
2760     can now have it's mobility improved by building both roads and
2761     railways.  It also means that a sectors defense is now based on the
2762     defensive infrastructure you build into the sector (no more intrinsic
2763     better defenses based on the sector, you determine which sectors are
2764     defended heavily, and which aren't.)
2765  * The defensive value of a sector no longer relies on the efficiency of
2766     the sector. Instead, it relies on the defensive efficiency of the sector.
2767     Thus, the "production" and "defensive" aspects of sectors have been
2768     separated.
2769  * "show sect stats" now shows the maximum defensive value for sectors.
2770  * Changed sector structure to take floats for off/def values so we can use
2771     a base of 1 instead of 2.
2772  * Added "improve" and "sinfrastructure" to support the infrastructure
2773     concepts.
2774  * Added L_TRAIN units which can only travel along railways.  Very fast on
2775     efficient railways, slow on non-efficient ones.
2776  * Added the ability for units to carry other units.
2777  * Fixed census (shortened up "fallout" and "coast" to "fall" and "coa".)
2778  * Forts only cost $500 to build and 100 hcms now (since they don't get any
2779     better defenses automagically.)
2780  * Modified "show sect build" to show the costs for building up the
2781     infrastructure of a sector.
2782  * Changed "spy" and the satellite recon stuff (which shows sector stuff for
2783     spyplanes too) to show the new infrastructure stuff, rounded of course.
2784  * Added Drake's info->html scripts, with some modifications, so you can
2785     now type "make html" and have your info pages built as html files too.
2786     This adds a new directory, "info.html", to the build tree.
2787  * Modified upgrade so that planes and land units may now be upgraded.
2788  * Added pstat command to list the statistics of your planes.
2789  * Added lstat command to list the statistics of your land units.
2790  * Added sstat command to list the statistics of your ships.
2791  * Added nmap command to show a map of your sectors after their new
2792     designations have taken place.