Author: sveinung
Date: Thu Dec  3 12:17:27 2015
New Revision: 30851

URL: http://svn.gna.org/viewcvs/freeciv?rev=30851&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:
    trunk/server/cityturn.c

Modified: trunk/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/cityturn.c?rev=30851&r1=30850&r2=30851&view=diff
==============================================================================
--- trunk/server/cityturn.c     (original)
+++ trunk/server/cityturn.c     Thu Dec  3 12:17:27 2015
@@ -3060,7 +3060,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

Reply via email to