Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] (PR#4024) New tech aquired
Home

[Freeciv-Dev] (PR#4024) New tech aquired

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: a-l@xxxxxxx
Subject: [Freeciv-Dev] (PR#4024) New tech aquired
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 7 May 2003 14:46:59 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[per - Mon Apr 28 14:06:59 2003]:

> > I believe you need to call science_dialog_update in this case.
> 
> Then please fix. My knowledge of this code is limited.

Here is a fix for the broken fix.  It should fix the original bug as well.

jason

Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.305
diff -u -r1.305 packhand.c
--- client/packhand.c   2003/05/05 12:41:39     1.305
+++ client/packhand.c   2003/05/07 21:45:25
@@ -1319,11 +1319,13 @@
   pplayer->ai.tech_goal=pinfo->tech_goal;
   
   if (can_client_change_view() && pplayer == game.player_ptr) {
+    if (poptechup || new_tech) {
+      science_dialog_update();
+    }
     if (poptechup) {
       if (!game.player_ptr->ai.control || ai_popup_windows) {
        popup_science_dialog(FALSE);
       }
-      science_dialog_update();
     }
     if (new_tech) {
       /* If we just learned bridge building and focus is on a settler

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#4024) New tech aquired, Jason Short <=