Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] (PR#13626) Show map to dead players bug?
Home

[Freeciv-Dev] (PR#13626) Show map to dead players bug?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#13626) Show map to dead players bug?
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Aug 2005 22:45:50 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13626 >

> [per - Sun Aug 07 17:52:34 2005]:
> 
> In server/plrhand.c:kill_players() I find this:
> 
>   /* Show entire map for players who are *not* in a team. */
>   if (pplayer->team) {
>     map_know_and_see_all(pplayer);
>   }
> 
> It cannot be right...

You mean this part?

-jason

Index: server/plrhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/plrhand.c,v
retrieving revision 1.406
diff -p -u -r1.406 plrhand.c
--- server/plrhand.c    11 Aug 2005 04:45:33 -0000      1.406
+++ server/plrhand.c    13 Aug 2005 05:45:33 -0000
@@ -138,7 +138,7 @@ void kill_player(struct player *pplayer)
   cancel_all_meetings(pplayer);
 
   /* Show entire map for players who are *not* in a team. */
-  if (pplayer->team) {
+  if (pplayer->team->players == 1) {
     map_know_and_see_all(pplayer);
   }
 

[Prev in Thread] Current Thread [Next in Thread]