Author: cazfi
Date: Fri Mar 27 07:25:20 2015
New Revision: 28632

URL: http://svn.gna.org/viewcvs/freeciv?rev=28632&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_4/server/diplhand.c

Modified: branches/S2_4/server/diplhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/server/diplhand.c?rev=28632&r1=28631&r2=28632&view=diff
==============================================================================
--- branches/S2_4/server/diplhand.c     (original)
+++ branches/S2_4/server/diplhand.c     Fri Mar 27 07:25:20 2015
@@ -175,7 +175,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