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

 Check against BF_DEFENSE_BONUS instead of presence of S_FORTRESS.


 - ML

diff -Nurd -X.diff_ignore freeciv/client/gui-sdl/dialogs.c freeciv/client/gui-sdl/dialogs.c
--- freeciv/client/gui-sdl/dialogs.c	2007-01-22 20:12:13.000000000 +0200
+++ freeciv/client/gui-sdl/dialogs.c	2007-01-24 17:12:30.000000000 +0200
@@ -790,7 +790,7 @@
   if(tile_has_special(ptile, S_RIVER)) {
     bonus += terrain_control.river_defense_bonus;
   }
-  if(tile_has_special(ptile, S_FORTRESS)) {
+  if(tile_has_base_flag(ptile, BF_DEFENSE_BONUS)) {
     bonus += terrain_control.fortress_defense_bonus;
   }
   my_snprintf(buffer, sizeof(buffer), "Terrain Defense Bonus: +%d%% ", bonus);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to