Author: cazfi
Date: Sat Aug 20 08:26:44 2016
New Revision: 33650

URL: http://svn.gna.org/viewcvs/freeciv?rev=33650&view=rev
Log:
Added improvement requirement type value editing.

See patch #7627

Modified:
    trunk/tools/ruledit/univ_value.c

Modified: trunk/tools/ruledit/univ_value.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/univ_value.c?rev=33650&r1=33649&r2=33650&view=diff
==============================================================================
--- trunk/tools/ruledit/univ_value.c    (original)
+++ trunk/tools/ruledit/univ_value.c    Sat Aug 20 08:26:44 2016
@@ -220,6 +220,41 @@
     governments_active_iterate(pgov) {
       cb(government_rule_name(pgov), univ->value.govern == pgov, data);
     } governments_active_iterate_end;
+    break;
+  case VUT_IMPROVEMENT:
+    improvement_active_iterate(pimpr) {
+      cb(improvement_rule_name(pimpr), univ->value.building == pimpr, data);
+    } improvement_active_iterate_end;
+    break;
+  case VUT_TERRAIN:
+  case VUT_NATION:
+  case VUT_UTYPE:
+  case VUT_UTFLAG:
+  case VUT_UCLASS:
+  case VUT_UCFLAG:
+  case VUT_OTYPE:
+  case VUT_SPECIALIST:
+  case VUT_AI_LEVEL:
+  case VUT_TERRAINCLASS:
+  case VUT_TERRAINALTER:
+  case VUT_CITYTILE:
+  case VUT_GOOD:
+  case VUT_TERRFLAG:
+  case VUT_NATIONALITY:
+  case VUT_BASEFLAG:
+  case VUT_ROADFLAG:
+  case VUT_EXTRA:
+  case VUT_TECHFLAG:
+  case VUT_ACHIEVEMENT:
+  case VUT_DIPLREL:
+  case VUT_STYLE:
+  case VUT_UNITSTATE:
+  case VUT_NATIONGROUP:
+  case VUT_TOPO:
+  case VUT_IMPR_GENUS:
+  case VUT_ACTION:
+  case VUT_EXTRAFLAG:
+    /* Not yet implemented */
     break;
   case VUT_MINSIZE:
   case VUT_MINYEAR:
@@ -235,7 +270,5 @@
   case VUT_COUNT:
     fc_assert(univ->kind != VUT_COUNT);
     break;
-  default:
-    break;
   }
 }


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

Reply via email to