Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2005:
[Freeciv-Dev] (PR#13327) Scenario and nation selection
Home

[Freeciv-Dev] (PR#13327) Scenario and nation selection

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#13327) Scenario and nation selection
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 4 Sep 2005 06:07:51 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13327 >

> [mstefek - Fri Jun 24 18:28:42 2005]:
> 
> In 2.0 you can select a nation after pressing "Load scenario"
> In head you can't - please fix this.

Indeed, this is a significant problem.  There is NO way to adjust
settings or pick a nation while in scenario mode.

The attached patch should (I would have thought) fixed it.  However it
does not.  Perhaps game.info isn't sent after the game is loaded.

-jason

Index: client/gui-gtk-2.0/pages.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/pages.c,v
retrieving revision 1.39
diff -p -u -r1.39 pages.c
--- client/gui-gtk-2.0/pages.c  19 Aug 2005 20:52:58 -0000      1.39
+++ client/gui-gtk-2.0/pages.c  4 Sep 2005 13:06:52 -0000
@@ -107,7 +107,11 @@ static void start_scenario_callback(GtkW
 **************************************************************************/
 static void load_saved_game_callback(GtkWidget *w, gpointer data)
 {
-  set_client_page(PAGE_LOAD);
+  if (game.info.is_new_game) {
+    set_client_page(PAGE_NETWORK);
+  } else {
+    set_client_page(PAGE_LOAD);
+  }
 
   start_new_game_callback(NULL, NULL);
 }

[Prev in Thread] Current Thread [Next in Thread]