Author: pepeto
Date: Fri Nov 28 09:23:03 2014
New Revision: 27144

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

See gna bug #22992

Modified:
    trunk/server/plrhand.c

Modified: trunk/server/plrhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/plrhand.c?rev=27144&r1=27143&r2=27144&view=diff
==============================================================================
--- trunk/server/plrhand.c      (original)
+++ trunk/server/plrhand.c      Fri Nov 28 09:23:03 2014
@@ -655,7 +655,7 @@
   struct player_diplstate *ds_plrplr2, *ds_plr2plr;
   struct unit_list *pplayer_seen_units, *pplayer2_seen_units;
 
-  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