Author: sveinung
Date: Sun Apr 26 02:47:58 2015
New Revision: 28878

URL: http://svn.gna.org/viewcvs/freeciv?rev=28878&view=rev
Log:
Move definition of ACTION_ANY to common/actions.h

See patch #6034

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

Modified: branches/S2_6/common/actions.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/actions.h?rev=28878&r1=28877&r2=28878&view=diff
==============================================================================
--- branches/S2_6/common/actions.h      (original)
+++ branches/S2_6/common/actions.h      Sun Apr 26 02:47:58 2015
@@ -70,8 +70,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: branches/S2_6/common/unittype.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/unittype.c?rev=28878&r1=28877&r2=28878&view=diff
==============================================================================
--- branches/S2_6/common/unittype.c     (original)
+++ branches/S2_6/common/unittype.c     Sun Apr 26 02:47:58 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

Reply via email to