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

2009/1/20 Marko Lindqvist:
>
>  $subject
>
>  To be committed immediately.

 Patch itself


 - ML

diff -Nurd -X.diff_ignore freeciv/client/gui-sdl/dialogs.c freeciv/client/gui-sdl/dialogs.c
--- freeciv/client/gui-sdl/dialogs.c	2009-01-11 18:54:44.000000000 +0200
+++ freeciv/client/gui-sdl/dialogs.c	2009-01-20 00:01:45.000000000 +0200
@@ -795,9 +795,10 @@
   return -1;
 }
 
-/***************************************************************
-  Return a (static) string with terrain defense bonus;
-***************************************************************/
+/**************************************************************************
+  Return a (static) string with terrain defense bonus.
+  This does not include bonuses some units may get out of bases.
+**************************************************************************/
 const char *sdl_get_tile_defense_info_text(struct tile *ptile)
 {
   static char buffer[64];
@@ -806,11 +807,9 @@
   if(tile_has_special(ptile, S_RIVER)) {
     bonus += terrain_control.river_defense_bonus;
   }
-  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);
-  
+
   return buffer;
 }
 
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to