Author: sveinung
Date: Mon Nov  9 08:36:22 2015
New Revision: 30487

URL: http://svn.gna.org/viewcvs/freeciv?rev=30487&view=rev
Log:
Give reason to cancel to the correct player

When a cease fire expires to war any third party allied to both players
will automatically have his alliance to both canceled. This is a valid
reason to cancel an alliance. Give the reason to the correct player.

See bug #24038

Modified:
    trunk/server/srv_main.c

Modified: trunk/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/srv_main.c?rev=30487&r1=30486&r2=30487&view=diff
==============================================================================
--- trunk/server/srv_main.c     (original)
+++ trunk/server/srv_main.c     Mon Nov  9 08:36:22 2015
@@ -845,7 +845,7 @@
                               player_name(plr1),
                               player_name(plr2));
                 player_diplstate_get(plr3, plr1)->has_reason_to_cancel = TRUE;
-                player_diplstate_get(plr2, plr2)->has_reason_to_cancel = TRUE;
+                player_diplstate_get(plr3, plr2)->has_reason_to_cancel = TRUE;
                 handle_diplomacy_cancel_pact(plr3, player_number(plr1), 
CLAUSE_ALLIANCE);
                 handle_diplomacy_cancel_pact(plr3, player_number(plr2), 
CLAUSE_ALLIANCE);
               }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to