Author: mir3x
Date: Wed Jan  6 09:13:33 2016
New Revision: 31378

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

See bug #24273


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

Modified: branches/S2_5/client/gui-qt/fc_client.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/gui-qt/fc_client.cpp?rev=31378&r1=31377&r2=31378&view=diff
==============================================================================
--- branches/S2_5/client/gui-qt/fc_client.cpp   (original)
+++ branches/S2_5/client/gui-qt/fc_client.cpp   Wed Jan  6 09:13:33 2016
@@ -491,7 +491,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