From 59b5ed32c2591249b40519b1f5ae8e4a6ecb7800 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 30 Jun 2022 02:20:54 +0300 Subject: [PATCH 38/38] Update diplstate max_state when entering cease-fire See osdn #44877 Signed-off-by: Marko Lindqvist --- server/diplhand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/diplhand.c b/server/diplhand.c index 1e529dcfa7..d08cc015c8 100644 --- a/server/diplhand.c +++ b/server/diplhand.c @@ -550,9 +550,8 @@ void handle_diplomacy_accept_treaty_req(struct player *pplayer, pgiver_seen_units = get_units_seen_via_ally(pgiver, pdest); pdest_seen_units = get_units_seen_via_ally(pdest, pgiver); } - ds_giverdest->type = DS_CEASEFIRE; + set_diplstate_type(ds_giverdest, ds_destgiver, DS_CEASEFIRE); ds_giverdest->turns_left = TURNS_LEFT; - ds_destgiver->type = DS_CEASEFIRE; ds_destgiver->turns_left = TURNS_LEFT; notify_player(pgiver, NULL, E_TREATY_CEASEFIRE, ftc_server, _("You agree on a cease-fire with %s."), -- 2.35.1