Author: cazfi
Date: Tue Apr 12 22:37:49 2016
New Revision: 32369

URL: http://svn.gna.org/viewcvs/freeciv?rev=32369&view=rev
Log:
Stop loading saved game from revealing entire map to such dead players for whom
it should not be shown according to 'revealmap' setting.

Reported by Jacob Nevins <jtn>

See bug #21296

Modified:
    branches/S2_6/server/savegame2.c

Modified: branches/S2_6/server/savegame2.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/savegame2.c?rev=32369&r1=32368&r2=32369&view=diff
==============================================================================
--- branches/S2_6/server/savegame2.c    (original)
+++ branches/S2_6/server/savegame2.c    Tue Apr 12 22:37:49 2016
@@ -6496,8 +6496,11 @@
   sg_check_ret();
 
   if (!plr->is_alive) {
-    /* Reveal all for dead players. */
-    map_know_and_see_all(plr);
+    if (game.server.revealmap & REVEAL_MAP_DEAD
+        && player_list_size(team_members(plr->team)) == 1) {
+      /* Reveal all for dead players. */
+      map_know_and_see_all(plr);
+    }
   }
 
   if (!plr->is_alive


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

Reply via email to