ai: any hostile unit != any hostile diplomat.
commita715cda679880d674afc7a7da613a12dcb0cf8c0
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 9 Nov 2016 01:38:22 +0000 (9 01:38 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Wed, 9 Nov 2016 01:38:22 +0000 (9 01:38 +0000)
treea0c7e35d3f8152b237b551f3e499a8990b522a05
parentde80026f053af636c9211471c6d03871a9d86adc
ai: any hostile unit != any hostile diplomat.

Freeciv 3.0 has hostile enabler controlled actions that aren't diplomatic.
The function is_city_surrounded_by_our_spies() is used when the Diplomat/Spy
control code checks if a new Diplomat/Spy is needed.

Stop assuming that any unit capable of performing any hostile action is
capable of performing a hostile Spy/Diplomat action in the function
is_city_surrounded_by_our_spies().

See bug #25272

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@34448 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
ai/default/aidiplomat.c