From 6189d3feb2cefc36da77dacb1b0e3ccc462cca00 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 25 Jun 2023 01:28:11 +0300 Subject: [PATCH 28/28] AI: Use DAI_WANT_MILITARY_EMERGENCY in dai_choose_attacker_air() It was mistakenly using old magic value of 100. See osdn #48197 Signed-off-by: Marko Lindqvist --- ai/default/aiair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ai/default/aiair.c b/ai/default/aiair.c index 6a8bba58ce..93fbe5d195 100644 --- a/ai/default/aiair.c +++ b/ai/default/aiair.c @@ -589,7 +589,8 @@ bool dai_choose_attacker_air(struct ai_type *ait, struct player *pplayer, /* military_advisor_choose_build() does something idiotic, * this function should not be called if there is danger... */ - if (choice->want >= 100 && choice->type != CT_ATTACKER) { + if (choice->want >= DAI_WANT_MILITARY_EMERGENCY + && choice->type != CT_ATTACKER) { return FALSE; } -- 2.40.1