From a6547566db51ef6d0a8f52fbdb67160e1dfca0a7 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 8 Oct 2022 01:30:57 +0300 Subject: [PATCH 06/37] Set civil war player diplstate max_states See osdn #45598 Signed-off-by: Marko Lindqvist --- server/plrhand.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/plrhand.c b/server/plrhand.c index 514f3da58e..1fa95dc34e 100644 --- a/server/plrhand.c +++ b/server/plrhand.c @@ -2745,11 +2745,10 @@ static struct player *split_player(struct player *pplayer) = player_diplstate_get(other_player, cplayer); if (get_player_bonus(other_player, EFT_NO_DIPLOMACY) > 0) { - ds_co->type = DS_WAR; - ds_oc->type = DS_WAR; + /* FIXME: What about No-contact war? */ + set_diplstate_type(ds_co, ds_oc, DS_WAR); } else { - ds_co->type = DS_NO_CONTACT; - ds_oc->type = DS_NO_CONTACT; + set_diplstate_type(ds_co, ds_oc, DS_NO_CONTACT); } ds_co->has_reason_to_cancel = 0; -- 2.35.1