Author: mir3x
Date: Wed Jan  6 09:13:48 2016
New Revision: 31379

URL: http://svn.gna.org/viewcvs/freeciv?rev=31379&view=rev
Log:
Fixed "not ready" button in pregame page, not setting
player status to unready.

See bug #24273


Modified:
    branches/S2_6/client/gui-qt/fc_client.cpp

Modified: branches/S2_6/client/gui-qt/fc_client.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/fc_client.cpp?rev=31379&r1=31378&r2=31379&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/fc_client.cpp   (original)
+++ branches/S2_6/client/gui-qt/fc_client.cpp   Wed Jan  6 09:13:48 2016
@@ -486,7 +486,11 @@
 ****************************************************************************/
 void fc_client::slot_pregame_start()
 {
-  send_chat("/start");
+  if (can_client_control()) {
+    dsend_packet_player_ready(&client.conn,
+                              player_number(client_player()),
+                              !client_player()->is_ready);
+  }
 }
 
 /****************************************************************************


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

Reply via email to