Project

General

Profile

Bug #963 » 0011-Update-handle_diplomacy_cancel_pact-function-header.patch

S3_1 - Marko Lindqvist, 10/15/2024 12:07 AM

View differences:

server/plrhand.c
/**********************************************************************//**
Handles a player cancelling a "pact" with another player.
packet.id is id of player we want to cancel a pact with
packet.val1 is a special value indicating what kind of treaty we want
to break. If this is CLAUSE_VISION we break shared vision. If it is
a pact treaty type, we break one pact level. If it is CLAUSE_LAST
we break _all_ treaties and go straight to war.
@param pplayer player cancelling the pact
@param other_player_id id of player we want to cancel a pact with
@param clause value indicating what kind of treaty we want
to break. If this is CLAUSE_VISION, we break
shared vision. Otherwise we break one pact level.
**************************************************************************/
void handle_diplomacy_cancel_pact(struct player *pplayer,
int other_player_id,
(2-2/2)