Author: cazfi
Date: Mon Aug  3 01:38:22 2015
New Revision: 29303

URL: http://svn.gna.org/viewcvs/freeciv?rev=29303&view=rev
Log:
Make sure Turn Done button is insensitive for players other than those whose 
phase it is.
The problem manifested itself especially before player's first phase after 
logging in.

See bug #21633

Modified:
    trunk/client/mapctrl_common.c

Modified: trunk/client/mapctrl_common.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/mapctrl_common.c?rev=29303&r1=29302&r2=29303&view=diff
==============================================================================
--- trunk/client/mapctrl_common.c       (original)
+++ trunk/client/mapctrl_common.c       Mon Aug  3 01:38:22 2015
@@ -518,6 +518,7 @@
   return (can_client_issue_orders()
           && !client.conn.playing->ai_controlled
           && !client.conn.playing->phase_done
+          && is_player_phase(client.conn.playing, game.info.phase)
           && !agents_busy());
 }
 


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

Reply via email to