Author: cazfi Date: Thu Nov 19 01:17:20 2015 New Revision: 30677 URL: http://svn.gna.org/viewcvs/freeciv?rev=30677&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_6/client/packhand.c Modified: branches/S2_6/client/packhand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/packhand.c?rev=30677&r1=30676&r2=30677&view=diff ============================================================================== --- branches/S2_6/client/packhand.c (original) +++ branches/S2_6/client/packhand.c Thu Nov 19 01:17:20 2015 @@ -1232,6 +1232,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(); @@ -1268,8 +1275,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