Author: sveinung
Date: Fri Apr  1 12:14:49 2016
New Revision: 32288

URL: http://svn.gna.org/viewcvs/freeciv?rev=32288&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:
    trunk/client/control.c
    trunk/client/control.h

Modified: trunk/client/control.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/control.c?rev=32288&r1=32287&r2=32288&view=diff
==============================================================================
--- trunk/client/control.c      (original)
+++ trunk/client/control.c      Fri Apr  1 12:14:49 2016
@@ -314,7 +314,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: trunk/client/control.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/control.h?rev=32288&r1=32287&r2=32288&view=diff
==============================================================================
--- trunk/client/control.h      (original)
+++ trunk/client/control.h      Fri Apr  1 12:14:49 2016
@@ -183,7 +183,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