Author: cazfi
Date: Thu Jun 16 14:20:30 2016
New Revision: 32870

URL: http://svn.gna.org/viewcvs/freeciv?rev=32870&view=rev
Log:
Added comment about armistice to players_non_invade()

See bug #24651

Modified:
    branches/S2_5/common/player.c

Modified: branches/S2_5/common/player.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/player.c?rev=32870&r1=32869&r2=32870&view=diff
==============================================================================
--- branches/S2_5/common/player.c       (original)
+++ branches/S2_5/common/player.c       Thu Jun 16 14:20:30 2016
@@ -1303,10 +1303,15 @@
   if (pplayer1 == pplayer2 || !pplayer1 || !pplayer2) {
     return FALSE;
   }
+
   if (is_barbarian(pplayer1) || is_barbarian(pplayer2)) {
     /* Likely an unnecessary test. */
     return FALSE;
   }
+
+  /* Movement during armistice is allowed so that player can withdraw
+     units deeper inside opponent territory. */
+
   return player_diplstate_get(pplayer1, pplayer2)->type == DS_PEACE;
 }
 


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

Reply via email to