Author: cazfi
Date: Sat Feb 14 19:10:45 2015
New Revision: 28136

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

See bug #23266

Modified:
    trunk/common/city.c
    trunk/doc/README.effects

Modified: trunk/common/city.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/city.c?rev=28136&r1=28135&r2=28136&view=diff
==============================================================================
--- trunk/common/city.c (original)
+++ trunk/common/city.c Sat Feb 14 19:10:45 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: trunk/doc/README.effects
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/doc/README.effects?rev=28136&r1=28135&r2=28136&view=diff
==============================================================================
--- trunk/doc/README.effects    (original)
+++ trunk/doc/README.effects    Sat Feb 14 19:10:45 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