Author: cazfi
Date: Thu Nov 19 01:17:27 2015
New Revision: 30678

URL: http://svn.gna.org/viewcvs/freeciv?rev=30678&view=rev
Log:
Consider server busy until beginning of first phase.
That means that client keeps the busy cursor, and Turn Done button does not
get sensitive while server is still processing beginning of the first phase.

See patch #6584

Modified:
    branches/S2_5/client/packhand.c

Modified: branches/S2_5/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/packhand.c?rev=30678&r1=30677&r2=30678&view=diff
==============================================================================
--- branches/S2_5/client/packhand.c     (original)
+++ branches/S2_5/client/packhand.c     Thu Nov 19 01:17:27 2015
@@ -1184,6 +1184,13 @@
 
   game.info.phase = phase;
 
+  /* Possibly replace wait cursor with something else */
+  if (phase == 0) {
+    /* TODO: Have server set as busy also if switching phase
+     * is taking long in a alternating phases mode. */
+    set_server_busy(FALSE);
+  }
+
   if (NULL != client.conn.playing
       && is_player_phase(client.conn.playing, phase)) {
     agents_start_turn();
@@ -1219,8 +1226,8 @@
 {
   log_debug("handle_begin_turn()");
 
-  /* Possibly replace wait cursor with something else */
-  set_server_busy(FALSE);
+  /* Server is still considered busy until it handles also the beginning
+   * of the first phase. */
 }
 
 /**************************************************************************


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

Reply via email to