Project

General

Profile

Bug #701 ยป 0068-AI-Remove-shared-vision-from-pending-war-target-once.patch

Marko Lindqvist, 06/05/2024 01:22 AM

View differences:

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;
    (1-1/1)