K 10
svn:author
V 3
per
K 8
svn:date
V 27
2004-08-31T15:35:31.000000Z
K 7
svn:log
V 592
Fix stay_and_defend() function in AI. Changes
  - Fix bug that checked our defense rating for checking whether another
unit could defend a city sufficiently so that we could go away.
  - Instead compare its defense rating with ours.
  - Fix missing check that we don't attempt to make an allied city our
homecity for our units.
  - Add code to check for grave danger in the city, and if this exceeds
a threshold dependent on the number of units in the city, stay even if
unit has a defender.

Also add assert in ai_unit_make_homecity() to detect attempts to make an
allied city our homecity.

END
