Author: cazfi
Date: Sat Feb 14 19:10:51 2015
New Revision: 28137

URL: http://svn.gna.org/viewcvs/freeciv?rev=28137&view=rev
Log:
Fixed boolean "Tile_Workable" effect not to be considered TRUE when it has 
negative value.

See bug #23266

Modified:
    branches/S2_6/common/city.c
    branches/S2_6/doc/README.effects

Modified: branches/S2_6/common/city.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/city.c?rev=28137&r1=28136&r2=28137&view=diff
==============================================================================
--- branches/S2_6/common/city.c (original)
+++ branches/S2_6/common/city.c Sat Feb 14 19:10:51 2015
@@ -1357,7 +1357,7 @@
     return FALSE;
   }
 
-  if (!get_city_tile_output_bonus(pcity, ptile, NULL, EFT_TILE_WORKABLE)) {
+  if (get_city_tile_output_bonus(pcity, ptile, NULL, EFT_TILE_WORKABLE) <= 0) {
     return FALSE;
   }
 

Modified: branches/S2_6/doc/README.effects
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/doc/README.effects?rev=28137&r1=28136&r2=28137&view=diff
==============================================================================
--- branches/S2_6/doc/README.effects    (original)
+++ branches/S2_6/doc/README.effects    Sat Feb 14 19:10:51 2015
@@ -439,7 +439,7 @@
     "Shield2Gold" flag will be affected by this.
 
 Tile_Workable
-    If value != 0, city can work target tile.
+    If value > 0, city can work target tile.
 
 Irrig_Possible
     If value > 0, unit can build irrigation to target tile. In addition to


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to