Author: pepeto
Date: Fri Nov 28 09:23:11 2014
New Revision: 27146

URL: http://svn.gna.org/viewcvs/freeciv?rev=27146&view=rev
Log:
Make team mates unable to withdraw shared vision.

See gna bug #22992

Modified:
    branches/S2_4/server/plrhand.c

Modified: branches/S2_4/server/plrhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_4/server/plrhand.c?rev=27146&r1=27145&r2=27146&view=diff
==============================================================================
--- branches/S2_4/server/plrhand.c      (original)
+++ branches/S2_4/server/plrhand.c      Fri Nov 28 09:23:11 2014
@@ -548,7 +548,7 @@
   struct player *pplayer2 = player_by_number(other_player_id);
   struct player_diplstate *ds_plrplr2, *ds_plr2plr;
 
-  if (NULL == pplayer2) {
+  if (NULL == pplayer2 || players_on_same_team(pplayer, pplayer2)) {
     return;
   }
 


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

Reply via email to