Author: sveinung
Date: Wed Apr  5 16:26:38 2017
New Revision: 35209

URL: http://svn.gna.org/viewcvs/freeciv?rev=35209&view=rev
Log:
Stop sharing requirement_unit_state_ereq().

Have it live in common/unittype.c where it is used.

See hrm Feature #649817

Modified:
    branches/S2_6/common/requirements.h
    branches/S2_6/common/unittype.c

Modified: branches/S2_6/common/requirements.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/requirements.h?rev=35209&r1=35208&r2=35209&view=diff
==============================================================================
--- branches/S2_6/common/requirements.h (original)
+++ branches/S2_6/common/requirements.h Wed Apr  5 16:26:38 2017
@@ -185,9 +185,6 @@
                           const bool present,
                           const int max_value);
 
-#define requirement_unit_state_ereq(_id_, _present_)                       \
-  requirement_kind_ereq(_id_, REQ_RANGE_LOCAL, _present_, USP_COUNT)
-
 #define requirement_diplrel_ereq(_id_, _range_, _present_)                \
   requirement_kind_ereq(_id_, _range_, _present_, DRO_LAST)
 

Modified: branches/S2_6/common/unittype.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/unittype.c?rev=35209&r1=35208&r2=35209&view=diff
==============================================================================
--- branches/S2_6/common/unittype.c     (original)
+++ branches/S2_6/common/unittype.c     Wed Apr  5 16:26:38 2017
@@ -332,6 +332,10 @@
  * property is FALSE
  */
 BV_DEFINE(bv_ustate_act_cache, USP_COUNT * 2);
+
+/* Cache position lookup functions */
+#define requirement_unit_state_ereq(_id_, _present_)                       \
+  requirement_kind_ereq(_id_, REQ_RANGE_LOCAL, _present_, USP_COUNT)
 
 /* Caches for each unit type */
 static bv_ustate_act_cache ustate_act_cache[U_LAST][ACTION_AND_FAKES];


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

Reply via email to