Author: sveinung
Date: Wed Mar 15 12:30:16 2017
New Revision: 35114
URL: http://svn.gna.org/viewcvs/freeciv?rev=35114&view=rev
Log:
Prepare PACKET_UNIT_ACTIONS for generic actions.
See hrm Feature #644615
Modified:
trunk/common/networking/packets.def
trunk/server/unithand.c
Modified: trunk/common/networking/packets.def
URL:
http://svn.gna.org/viewcvs/freeciv/trunk/common/networking/packets.def?rev=35114&r1=35113&r2=35114&view=diff
==============================================================================
--- trunk/common/networking/packets.def (original)
+++ trunk/common/networking/packets.def Wed Mar 15 12:30:16 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: trunk/server/unithand.c
URL:
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=35114&r1=35113&r2=35114&view=diff
==============================================================================
--- trunk/server/unithand.c (original)
+++ trunk/server/unithand.c Wed Mar 15 12:30:16 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
[email protected]
https://mail.gna.org/listinfo/freeciv-commits