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

 This patch adds another borders mode. With this mode borders extend
to unknown tiles and reveal those (in addition to providing vision to
already known tiles)


 - ML

diff -Nurd -X.diff_ignore freeciv/common/game.h freeciv/common/game.h
--- freeciv/common/game.h       2009-01-07 22:04:35.000000000 +0200
+++ freeciv/common/game.h       2009-01-07 22:05:23.000000000 +0200
@@ -204,7 +204,7 @@
 /* 0 means no national borders. */
 #define GAME_DEFAULT_BORDERS         1
 #define GAME_MIN_BORDERS             0
-#define GAME_MAX_BORDERS             2
+#define GAME_MAX_BORDERS             3
 
 #define GAME_DEFAULT_HAPPYBORDERS    TRUE
 
diff -Nurd -X.diff_ignore freeciv/server/maphand.c freeciv/server/maphand.c
--- freeciv/server/maphand.c    2009-01-07 22:04:35.000000000 +0200
+++ freeciv/server/maphand.c    2009-01-07 22:07:06.000000000 +0200
@@ -1537,7 +1537,7 @@
 {
   struct player *ploser = tile_owner(ptile);
 
-  if (game.info.borders > 1) {
+  if (game.info.borders >= 2) {
     if (ploser != powner) {
       if (ploser) {
         map_fog_tile(ploser, ptile, V_MAIN);
@@ -1641,8 +1641,7 @@
       continue;
     }
 
-    if (!map_is_known(dtile, owner)) {
-      /* without city_reveal_tiles option */
+    if (!map_is_known(dtile, owner) && game.info.borders < 3) {
       continue;
     }
 
diff -Nurd -X.diff_ignore freeciv/server/settings.c freeciv/server/settings.c
--- freeciv/server/settings.c   2009-01-07 22:04:35.000000000 +0200
+++ freeciv/server/settings.c   2009-01-07 22:05:09.000000000 +0200
@@ -697,7 +697,8 @@
             "around a fortress or city will be owned by that nation.\n"
              "  0 = Disabled\n"
              "  1 = Enabled\n"
-             "  2 = See everything inside borders"),
+             "  2 = See everything inside borders\n"
+             "  3 = Borders expand to unknown, revealing tiles"),
          NULL,
          GAME_MIN_BORDERS, GAME_MAX_BORDERS, GAME_DEFAULT_BORDERS)
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to