Author: sveinung
Date: Fri Apr  1 12:16:03 2016
New Revision: 32290

URL: http://svn.gna.org/viewcvs/freeciv?rev=32290&view=rev
Log:
client: act dec check won't change the unit.

Declare the unit to check for action decision want const.

See patch #7082

Modified:
    branches/S2_6/client/control.c
    branches/S2_6/client/control.h

Modified: branches/S2_6/client/control.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/control.c?rev=32290&r1=32289&r2=32290&view=diff
==============================================================================
--- branches/S2_6/client/control.c      (original)
+++ branches/S2_6/client/control.c      Fri Apr  1 12:16:03 2016
@@ -292,7 +292,7 @@
   Returns TRUE iff the client should ask the server about what actions a
   unit can perform.
 **************************************************************************/
-bool should_ask_server_for_actions(struct unit *punit)
+bool should_ask_server_for_actions(const struct unit *punit)
 {
   return (punit->action_decision_want == ACT_DEC_ACTIVE
           /* The player is interested in getting a pop up for a mere

Modified: branches/S2_6/client/control.h
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/control.h?rev=32290&r1=32289&r2=32290&view=diff
==============================================================================
--- branches/S2_6/client/control.h      (original)
+++ branches/S2_6/client/control.h      Fri Apr  1 12:16:03 2016
@@ -182,7 +182,7 @@
 double blink_active_unit(void);
 double blink_turn_done_button(void);
 
-bool should_ask_server_for_actions(struct unit *punit);
+bool should_ask_server_for_actions(const struct unit *punit);
 void action_selection_no_longer_in_progress(const int old_actor_id);
 void action_decision_clear_want(const int old_actor_id);
 void action_selection_next_in_focus(const int old_actor_id);


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

Reply via email to