Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2006:
[Freeciv-Dev] (PR#17163) [patch]Don't draw nation borders at coastline
Home

[Freeciv-Dev] (PR#17163) [patch]Don't draw nation borders at coastline

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#17163) [patch]Don't draw nation borders at coastline
From: "almighty@xxxxxxxxxxxxxxxxx" <almighty@xxxxxxxxxxxxxxxxx>
Date: Fri, 19 May 2006 09:04:25 -0700
Reply-to: bugs@xxxxxxxxxxx

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

Hi all,

I've attached a patch which eliminates the display of nation borders along
coastlines. Borders between two land tiles or between two sea tiles are
still shown.

This makes the map look a little less cluttered -- especially when also
city borders are enabled.

Andreas
Index: client/tilespec.c
===================================================================
--- client/tilespec.c   (Revision 11963)
+++ client/tilespec.c   (Arbeitskopie)
@@ -3822,7 +3822,11 @@
       struct player *owner0 = tile_get_owner(pedge->tile[0]);
       struct player *owner1 = tile_get_owner(pedge->tile[1]);
 
-      if (owner0 != owner1) {
+      Continent_id continent0 = tile_get_continent(pedge->tile[0]);
+      Continent_id continent1 = tile_get_continent(pedge->tile[1]);
+      int not_coast = ! XOR((continent0 < 0), (continent1 < 0));
+
+      if ((owner0 != owner1) && not_coast) {
        if (owner0) {
          ADD_SPRITE_SIMPLE(t->sprites.grid.player_borders
                            [owner0->player_no][pedge->type][0]);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#17163) [patch]Don't draw nation borders at coastline, almighty@xxxxxxxxxxxxxxxxx <=