Author: cazfi
Date: Tue Nov  1 09:22:56 2016
New Revision: 34304

URL: http://svn.gna.org/viewcvs/freeciv?rev=34304&view=rev
Log:
Present treaty cancellation button in sdl-clients when it should.

Reported by Jacob Nevins <jtn>

See bug #25245

Modified:
    trunk/client/gui-sdl2/diplodlg.c
    trunk/common/player.c

Modified: trunk/client/gui-sdl2/diplodlg.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/diplodlg.c?rev=34304&r1=34303&r2=34304&view=diff
==============================================================================
--- trunk/client/gui-sdl2/diplodlg.c    (original)
+++ trunk/client/gui-sdl2/diplodlg.c    Tue Nov  1 09:22:56 2016
@@ -1548,7 +1548,7 @@
     area.h += pText->h + adj_size(15);
 
     can_toward_war = can_client_issue_orders()
-      && pplayer_can_cancel_treaty(client_player(), pPlayer);
+      && pplayer_can_cancel_treaty(client_player(), pPlayer) == DIPL_OK;
 
     if (can_toward_war) {
       if (type == DS_ARMISTICE) {

Modified: trunk/common/player.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/player.c?rev=34304&r1=34303&r2=34304&view=diff
==============================================================================
--- trunk/common/player.c       (original)
+++ trunk/common/player.c       Tue Nov  1 09:22:56 2016
@@ -84,8 +84,6 @@
 }
 
 /***************************************************************
-  Returns true iff p1 can cancel treaty on p2.
-
   The senate may not allow you to break the treaty.  In this 
   case you must first dissolve the senate then you can break 
   it.  This is waived if you have statue of liberty since you 


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

Reply via email to