Author: cazfi
Date: Fri Aug 28 21:52:35 2015
New Revision: 29712

URL: http://svn.gna.org/viewcvs/freeciv?rev=29712&view=rev
Log:
Set current_page as the upcoming page before setting up the new page in 
sdl-clients.

See bug #23810

Modified:
    branches/S2_6/client/gui-sdl/pages.c
    branches/S2_6/client/gui-sdl2/pages.c

Modified: branches/S2_6/client/gui-sdl/pages.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl/pages.c?rev=29712&r1=29711&r2=29712&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl/pages.c        (original)
+++ branches/S2_6/client/gui-sdl/pages.c        Fri Aug 28 21:52:35 2015
@@ -381,6 +381,8 @@
       break;
   }
 
+  old_page = page;
+
   switch (page) {
     case PAGE_MAIN:
       show_main_page();
@@ -407,8 +409,6 @@
     default:
       break;
   }  
-  
-  old_page = page;
 }
 
 /****************************************************************************

Modified: branches/S2_6/client/gui-sdl2/pages.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-sdl2/pages.c?rev=29712&r1=29711&r2=29712&view=diff
==============================================================================
--- branches/S2_6/client/gui-sdl2/pages.c       (original)
+++ branches/S2_6/client/gui-sdl2/pages.c       Fri Aug 28 21:52:35 2015
@@ -396,6 +396,8 @@
     break;
   }
 
+  old_page = page;
+
   switch (page) {
   case PAGE_MAIN:
     show_main_page();
@@ -422,8 +424,6 @@
   default:
     break;
   }
-
-  old_page = page;
 }
 
 /****************************************************************************


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

Reply via email to