Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10171) bug in non-iso view
Home

[Freeciv-Dev] (PR#10171) bug in non-iso view

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10171) bug in non-iso view
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 17 Sep 2004 14:50:54 -0700
Reply-to: rt@xxxxxxxxxxx

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

This patch fixes a bug in PR#10163 with non-iso tilesets.

jason

? settler_recursion_crash
Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.199
diff -u -r1.199 tilespec.c
--- client/tilespec.c   17 Sep 2004 20:45:03 -0000      1.199
+++ client/tilespec.c   17 Sep 2004 21:50:00 -0000
@@ -2746,7 +2746,7 @@
   }
 
   if (!is_isometric && draw_fog_of_war
-      && tile_get_known(map_x, map_y) == TILE_KNOWN_FOGGED) {
+      && ptile && ptile->known == 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#10171) bug in non-iso view, Jason Short <=