Author: sveinung
Date: Wed Mar 15 12:31:47 2017
New Revision: 35116

URL: http://svn.gna.org/viewcvs/freeciv?rev=35116&view=rev
Log:
Prepare PACKET_UNIT_ACTIONS for generic actions.

See hrm Feature #644615

Modified:
    branches/S3_0/common/networking/packets.def
    branches/S3_0/server/unithand.c

Modified: branches/S3_0/common/networking/packets.def
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/common/networking/packets.def?rev=35116&r1=35115&r2=35116&view=diff
==============================================================================
--- branches/S3_0/common/networking/packets.def (original)
+++ branches/S3_0/common/networking/packets.def Wed Mar 15 12:31:47 2017
@@ -1086,7 +1086,7 @@
   BOOL disturb_player;
 
   /* How to interpret action probabilities is documented in fc_types.h */
-  ACT_PROB action_probabilities[ACTION_COUNT];
+  ACT_PROB action_probabilities[MAX_NUM_ACTIONS];
 end
 
 PACKET_UNIT_CHANGE_ACTIVITY = 222; cs, dsend

Modified: branches/S3_0/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/unithand.c?rev=35116&r1=35115&r2=35116&view=diff
==============================================================================
--- branches/S3_0/server/unithand.c     (original)
+++ branches/S3_0/server/unithand.c     Wed Mar 15 12:31:47 2017
@@ -1437,7 +1437,7 @@
   struct player *actor_player;
   struct unit *actor_unit;
   struct tile *target_tile;
-  struct act_prob probabilities[ACTION_COUNT];
+  struct act_prob probabilities[MAX_NUM_ACTIONS];
 
   struct unit *target_unit;
   struct city *target_city;


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

Reply via email to