Author: sveinung
Date: Wed Nov  4 17:04:07 2015
New Revision: 30406

URL: http://svn.gna.org/viewcvs/freeciv?rev=30406&view=rev
Log:
Sanity check armistice turns left

See patch #6523

Modified:
    branches/S2_6/server/sanitycheck.c

Modified: branches/S2_6/server/sanitycheck.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/sanitycheck.c?rev=30406&r1=30405&r2=30406&view=diff
==============================================================================
--- branches/S2_6/server/sanitycheck.c  (original)
+++ branches/S2_6/server/sanitycheck.c  Wed Nov  4 17:04:07 2015
@@ -487,7 +487,8 @@
       state1 = player_diplstate_get(pplayer, pplayer2);
       state2 = player_diplstate_get(pplayer2, pplayer);
       SANITY_CHECK(state1->type == state2->type);
-      if (state1->type == DS_CEASEFIRE) {
+      if (state1->type == DS_CEASEFIRE
+          || state1->type == DS_ARMISTICE) {
         SANITY_CHECK(state1->turns_left == state2->turns_left);
       }
       if (state1->type == DS_TEAM) {


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

Reply via email to