<URL: http://bugs.freeciv.org/Ticket/Display.html?id=33626 >
On 1/15/07, Marko Lindqvist <[EMAIL PROTECTED]> wrote: > > City sees submarine even when it's one square away. Battleship sees > it only when in adjacent square. Is this intentional? Anyway, attached patch changes that so that city sees submarines only if it's adjacent to city center. This gives a bit more strategic value for submarines. If nobody objects, I will commit to both trunk and S2_1. - ML
diff -Nurd -X.diff_ignore freeciv/server/citytools.c freeciv/server/citytools.c --- freeciv/server/citytools.c 2006-08-18 10:51:27.000000000 +0300 +++ freeciv/server/citytools.c 2007-01-17 23:03:54.000000000 +0200 @@ -2142,7 +2142,6 @@ { int radius_sq = get_city_bonus(pcity, EFT_CITY_VISION_RADIUS_SQ); - vision_layer_iterate(v) { - vision_change_sight(pcity->server.vision, v, radius_sq); - } vision_layer_iterate_end; + vision_change_sight(pcity->server.vision, V_MAIN, radius_sq); + vision_change_sight(pcity->server.vision, V_INVIS, 2); }
_______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev