Author: sveinung Date: Sun Apr 26 02:47:34 2015 New Revision: 28877 URL: http://svn.gna.org/viewcvs/freeciv?rev=28877&view=rev Log: Move definition of ACTION_ANY to common/actions.h
See patch #6034 Modified: trunk/common/actions.h trunk/common/unittype.c Modified: trunk/common/actions.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.h?rev=28877&r1=28876&r2=28877&view=diff ============================================================================== --- trunk/common/actions.h (original) +++ trunk/common/actions.h Sun Apr 26 02:47:34 2015 @@ -80,8 +80,12 @@ #define SPECENUM_COUNT ACTION_COUNT #include "specenum_gen.h" -/* Used to signal that the unit should move in stead of trying to act. */ +/* Used in the network protocol to signal that the unit should move in + * stead of trying to act. */ #define ACTION_MOVE ACTION_COUNT + +/* Used in searches to signal that any action at all is OK. */ +#define ACTION_ANY ACTION_COUNT /* * Action probability Modified: trunk/common/unittype.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/unittype.c?rev=28877&r1=28876&r2=28877&view=diff ============================================================================== --- trunk/common/unittype.c (original) +++ trunk/common/unittype.c Sun Apr 26 02:47:34 2015 @@ -262,9 +262,6 @@ return BV_ISSET(pcargotype->disembarks, uclass_index(utype_class(ptranstype))); } - -/* Fake action representing any action at all. */ -#define ACTION_ANY ACTION_COUNT /* Fake action representing any hostile action. */ #define ACTION_HOSTILE ACTION_COUNT + 1 _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits