Author: cazfi
Date: Fri Mar 27 07:25:05 2015
New Revision: 28630

URL: http://svn.gna.org/viewcvs/freeciv?rev=28630&view=rev
Log:
Made it impossible to accept illegal pact also for the party that is marked as
'receiver' of the clause.

See bug #23408

Modified:
    branches/S2_6/server/diplhand.c

Modified: branches/S2_6/server/diplhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/diplhand.c?rev=28630&r1=28629&r2=28630&view=diff
==============================================================================
--- branches/S2_6/server/diplhand.c     (original)
+++ branches/S2_6/server/diplhand.c     Fri Mar 27 07:25:05 2015
@@ -169,7 +169,7 @@
     clause_list_iterate(ptreaty->clauses, pclause) {
       struct city *pcity = NULL;
 
-      if (pclause->from == pplayer) {
+      if (pclause->from == pplayer || is_pact_clause(pclause->type)) {
        switch(pclause->type) {
        case CLAUSE_EMBASSY:
           if (player_has_real_embassy(pother, pplayer)) {


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

Reply via email to