Author: cazfi
Date: Thu Nov 19 01:17:13 2015
New Revision: 30676

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

Modified: trunk/client/packhand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/packhand.c?rev=30676&r1=30675&r2=30676&view=diff
==============================================================================
--- trunk/client/packhand.c     (original)
+++ trunk/client/packhand.c     Thu Nov 19 01:17:13 2015
@@ -1267,6 +1267,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();
@@ -1303,8 +1310,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. */
 
   stop_turn_change_wait();
 }


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

Reply via email to