Author: cazfi
Date: Sun Aug 23 15:51:16 2015
New Revision: 29654

URL: http://svn.gna.org/viewcvs/freeciv?rev=29654&view=rev
Log:
Sdl-clients no longer ask user to end turn when one already has done that.

See patch #6271

Modified:
    trunk/client/gui-sdl/mapctrl.c
    trunk/client/gui-sdl/mapview.c
    trunk/client/gui-sdl2/mapctrl.c
    trunk/client/gui-sdl2/mapview.c

Modified: trunk/client/gui-sdl/mapctrl.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl/mapctrl.c?rev=29654&r1=29653&r2=29654&view=diff
==============================================================================
--- trunk/client/gui-sdl/mapctrl.c      (original)
+++ trunk/client/gui-sdl/mapctrl.c      Sun Aug 23 15:51:16 2015
@@ -2728,6 +2728,7 @@
     }
     widget_redraw(pNew_Turn_Button);
     widget_flush(pNew_Turn_Button);
+    redraw_unit_info_label(get_units_in_focus());
   }
 }
 

Modified: trunk/client/gui-sdl/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl/mapview.c?rev=29654&r1=29653&r2=29654&view=diff
==============================================================================
--- trunk/client/gui-sdl/mapview.c      (original)
+++ trunk/client/gui-sdl/mapview.c      Sun Aug 23 15:51:16 2015
@@ -909,7 +909,7 @@
        hide_scrollbar(pInfo_Window->private_data.adv_dlg->pScroll);
       }
 
-      if (!client_is_observer()
+      if (!client_is_observer() && !client.conn.playing->phase_done
           && (!client.conn.playing->ai_controlled || 
options.ai_manual_turn_done)) {
         char buf[256];
         fc_snprintf(buf, sizeof(buf), "%s\n%s\n%s",

Modified: trunk/client/gui-sdl2/mapctrl.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/mapctrl.c?rev=29654&r1=29653&r2=29654&view=diff
==============================================================================
--- trunk/client/gui-sdl2/mapctrl.c     (original)
+++ trunk/client/gui-sdl2/mapctrl.c     Sun Aug 23 15:51:16 2015
@@ -2905,6 +2905,7 @@
     }
     widget_redraw(pNew_Turn_Button);
     widget_flush(pNew_Turn_Button);
+    redraw_unit_info_label(get_units_in_focus());
   }
 }
 

Modified: trunk/client/gui-sdl2/mapview.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-sdl2/mapview.c?rev=29654&r1=29653&r2=29654&view=diff
==============================================================================
--- trunk/client/gui-sdl2/mapview.c     (original)
+++ trunk/client/gui-sdl2/mapview.c     Sun Aug 23 15:51:16 2015
@@ -925,7 +925,7 @@
        hide_scrollbar(pInfo_Window->private_data.adv_dlg->pScroll);
       }
 
-      if (!client_is_observer()
+      if (!client_is_observer() && !client.conn.playing->phase_done
           && (!client.conn.playing->ai_controlled || 
options.ai_manual_turn_done)) {
         char buf[256];
 


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

Reply via email to