Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] (PR#7208) change an assertion for iso-maps
Home

[Freeciv-Dev] (PR#7208) change an assertion for iso-maps

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7208) change an assertion for iso-maps
From: "Jason Short" <jshort@xxxxxxxxxxxxxx>
Date: Tue, 6 Jan 2004 08:48:47 -0800
Reply-to: rt@xxxxxxxxxxx

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

The attached patch makes a small change in a packets.c assertion.  This 
is needed for iso-maps since (255,255) is a map position while 
MAP_MAX_WIDTH is measured in native coordinates.

jason

Index: common/packets.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/packets.c,v
retrieving revision 1.264
diff -u -r1.264 packets.c
--- common/packets.c    2004/01/05 00:18:31     1.264
+++ common/packets.c    2004/01/06 16:47:43
@@ -602,7 +602,7 @@
 {
   if (packet->x == -1 && packet->y == -1) {
     /* since we can currently only send unsigned ints... */
-    assert(MAP_MAX_WIDTH <= 255 && MAP_MAX_HEIGHT <= 255);
+    assert(!is_normal_map_pos(255, 255));
     packet->x = 255;
     packet->y = 255;
   }

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#7208) change an assertion for iso-maps, Jason Short <=