Author: cazfi Date: Sat Feb 14 19:11:01 2015 New Revision: 28138 URL: http://svn.gna.org/viewcvs/freeciv?rev=28138&view=rev Log: Fixed boolean "Tile_Workable" effect not to be considered TRUE when it has negative value.
See bug #23266 Modified: branches/S2_5/common/city.c branches/S2_5/doc/README.effects Modified: branches/S2_5/common/city.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/city.c?rev=28138&r1=28137&r2=28138&view=diff ============================================================================== --- branches/S2_5/common/city.c (original) +++ branches/S2_5/common/city.c Sat Feb 14 19:11:01 2015 @@ -1351,7 +1351,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_5/doc/README.effects URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/doc/README.effects?rev=28138&r1=28137&r2=28138&view=diff ============================================================================== --- branches/S2_5/doc/README.effects (original) +++ branches/S2_5/doc/README.effects Sat Feb 14 19:11:01 2015 @@ -380,7 +380,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