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

2008/7/10 Jason Dorje Short:
> borders should ALWAYS grow to cover at least the city area in time.

 Attached patch does just that. All this (not only this patch) needs
playtesting, of course.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/citytools.c freeciv/server/citytools.c
--- freeciv/server/citytools.c  2008-07-03 21:02:59.000000000 +0300
+++ freeciv/server/citytools.c  2008-07-10 23:14:15.000000000 +0300
@@ -2278,6 +2278,10 @@
     } else {
       psite->border_radius_sq = (2 + delta) * game.info.borders;
     }
+    if (psite->identity > 0) {
+      /* City */
+      psite->border_radius_sq = MAX(psite->border_radius_sq, 2*2+1*1);
+    }
 
     if (radius_sq < psite->border_radius_sq) {
       radius_sq = psite->border_radius_sq;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to