Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10699) If we are still connected, don't go back to the
Home

[Freeciv-Dev] (PR#10699) If we are still connected, don't go back to the

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10699) If we are still connected, don't go back to the main page, but to the start If still connected, don't go back to the main page, but to the start page instead.
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sat, 23 Oct 2004 18:23:08 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10699 >

Requested by Mike, here is the patch for record keeping.

Index: client/civclient.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/civclient.c,v
retrieving revision 1.199
diff -u -u -r1.199 civclient.c
--- client/civclient.c  18 Oct 2004 23:49:27 -0000      1.199
+++ client/civclient.c  24 Oct 2004 01:15:37 -0000
@@ -473,13 +473,16 @@
        client_game_free();
       }
       client_game_init();
-      set_client_page(PAGE_MAIN);
+      if (!aconnection.established) {
+       set_client_page(PAGE_MAIN);
+      } else {
+       set_client_page(PAGE_START);
+      }
     }
     update_menus();
   }
   if (!aconnection.established && client_state == CLIENT_PRE_GAME_STATE) {
     gui_server_connect();
-    set_client_page(PAGE_MAIN);
     if (auto_connect) {
       if (connect_error) {
        freelog(LOG_NORMAL,

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10699) If we are still connected, don't go back to the main page, but to the start If still connected, don't go back to the main page, but to the start page instead., Vasco Alexandre da Silva Costa <=