Author: sveinung Date: Thu Dec 3 12:16:59 2015 New Revision: 30850 URL: http://svn.gna.org/viewcvs/freeciv?rev=30850&view=rev Log: Replace magic 0 with GOLD_UPKEEP_CITY
Use the enumerator GOLD_UPKEEP_CITY rather than the magic value 0. See patch #6646 Modified: branches/S2_6/server/cityturn.c Modified: branches/S2_6/server/cityturn.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/cityturn.c?rev=30850&r1=30849&r2=30850&view=diff ============================================================================== --- branches/S2_6/server/cityturn.c (original) +++ branches/S2_6/server/cityturn.c Thu Dec 3 12:16:59 2015 @@ -2916,7 +2916,7 @@ case GOLD_UPKEEP_CITY: case GOLD_UPKEEP_MIXED: if (!city_balance_treasury_buildings(pcity) - && game.info.gold_upkeep_style == 0) { + && game.info.gold_upkeep_style == GOLD_UPKEEP_CITY) { city_balance_treasury_units(pcity); } break; _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits