Bug #701 ยป 0068-AI-Remove-shared-vision-from-pending-war-target-once.patch
ai/default/daidiplomacy.c | ||
---|---|---|
struct ai_plr *data = def_ai_player_data(pplayer, ait);
|
||
if (data->diplomacy.war_target != NULL) {
|
||
if (gives_shared_vision(pplayer, data->diplomacy.war_target)) {
|
||
remove_shared_vision(pplayer, data->diplomacy.war_target);
|
||
}
|
||
dai_declare_war(ait, pplayer, data->diplomacy.war_target);
|
||
data->diplomacy.war_target = NULL;
|