Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10369) ptile->known -> tile_get_known()
Home

[Freeciv-Dev] (PR#10369) ptile->known -> tile_get_known()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10369) ptile->known -> tile_get_known()
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Sep 2004 20:44:52 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10369 >

two places.

-mike

? client/.climap.c.swp
Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.201
diff -u -r1.201 tilespec.c
--- client/tilespec.c   25 Sep 2004 17:40:49 -0000      1.201
+++ client/tilespec.c   28 Sep 2004 03:44:25 -0000
@@ -2630,7 +2630,7 @@
   struct unit *pfocus = get_unit_in_focus();
   struct drawn_sprite *save_sprs = sprs;
 
-  if (ptile && ptile->known == TILE_UNKNOWN) {
+  if (ptile && tile_get_known(map_x, map_y) == TILE_UNKNOWN) {
     ADD_BG(COLOR_STD_BLACK);
     return sprs - save_sprs;
   }
@@ -2744,7 +2744,7 @@
   }
 
   if (!is_isometric && draw_fog_of_war
-      && ptile && ptile->known == TILE_KNOWN_FOGGED) {
+      && ptile && tile_get_known(map_x, map_y) == TILE_KNOWN_FOGGED) {
     /* Fogging in non-iso is done this way. */
     ADD_SPRITE_SIMPLE(sprites.tx.fog);
   }

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10369) ptile->known -> tile_get_known(), Mike Kaufman <=