Author: mir3x
Date: Thu Sep 22 19:26:30 2016
New Revision: 33852

URL: http://svn.gna.org/viewcvs/freeciv?rev=33852&view=rev
Log:
Qt client - dont allow detached players with hack access to start game

See patch #7703


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

Modified: branches/S2_6/client/gui-qt/pages.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/pages.cpp?rev=33852&r1=33851&r2=33852&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/pages.cpp       (original)
+++ branches/S2_6/client/gui-qt/pages.cpp       Thu Sep 22 19:26:30 2016
@@ -1811,7 +1811,7 @@
     }
   } else {
     text = _("Start");
-    if (can_client_access_hack()) {
+    if (can_client_access_hack() && client.conn.observer == TRUE) {
       sensitive = true;
       players_iterate(plr) {
         if (!plr->ai_controlled) {
@@ -1825,6 +1825,7 @@
       sensitive = false;
     }
   }
+  start_button->setEnabled(sensitive);
   start_button->setText(text);
 
   /* Nation button */


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

Reply via email to