Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9716) fill_ranges_improv_lists assert
Home

[Freeciv-Dev] (PR#9716) fill_ranges_improv_lists assert

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#9716) fill_ranges_improv_lists assert
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Aug 2004 10:51:53 -0700
Reply-to: rt@xxxxxxxxxxx

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

This patch removes the "bad" assertion.

jason

Index: common/improvement.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/improvement.c,v
retrieving revision 1.43
diff -u -r1.43 improvement.c
--- common/improvement.c        13 Aug 2004 15:59:12 -0000      1.43
+++ common/improvement.c        18 Aug 2004 17:50:58 -0000
@@ -286,7 +286,11 @@
   if (pcity) {
     equiv_list[IR_CITY] = pcity->improvements;
     cont = map_get_continent(pcity->x, pcity->y);
+#if 0
+    /* This assertion seems obvious enough, but it fails in the client
+     * because city info is sent before tile info. */
     assert(cont > 0);
+#endif
   }
 
   if (pplayer) {

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