URI:
       tConfiguration is now backed up by clients immediately before game start, rather than immediately after program init, so that any changes made before game start are not lost when the backup is restored. - vaccinewars - be a doctor and try to vaccinate the world
  HTML git clone git://src.adamsgaard.dk/vaccinewars
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 9fbed717f335f34015f8b8ad98c14054d102ef97
   DIR parent 7fe7009ee0a97396c4acddb98e67eff07abc8544
  HTML Author: Ben Webb <ben@salilab.org>
       Date:   Mon, 25 Feb 2002 18:38:16 +0000
       
       Configuration is now backed up by clients immediately before game start,
       rather than immediately after program init, so that any changes made before
       game start are not lost when the backup is restored.
       
       
       Diffstat:
         M src/curses_client.c                 |       4 ++++
         M src/dopewars.c                      |       4 ----
         M src/dopewars.h                      |       2 ++
         M src/gtk_client.c                    |       5 +++++
       
       4 files changed, 11 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/src/curses_client.c b/src/curses_client.c
       t@@ -2377,6 +2377,10 @@ void CursesLoop(void)
          if (!CheckHighScoreFileConfig())
            return;
        
       +  /* Save the configuration, so we can restore those elements that get
       +   * overwritten when we connect to a dopewars server */
       +  BackupConfig();
       +
          start_curses();
          Width = COLS;
          Depth = LINES;
   DIR diff --git a/src/dopewars.c b/src/dopewars.c
       t@@ -2360,10 +2360,6 @@ void SetupParameters(void)
            g_free(ConfigFile);
          }
        #endif /* CYGWIN */
       -
       -  /* Save this configuration, so we can restore those elements that get
       -   * overwritten when we connect to a dopewars server */
       -  BackupConfig();
        }
        
        void HandleHelpTexts()
   DIR diff --git a/src/dopewars.h b/src/dopewars.h
       t@@ -419,4 +419,6 @@ void ScannerErrorHandler(GScanner *scanner, gchar *msg, gint error);
        void OpenLog(void);
        void CloseLog(void);
        gboolean IsConnectedPlayer(Player *play);
       +void BackupConfig(void);
       +void WriteConfigFile(void);
        #endif
   DIR diff --git a/src/gtk_client.c b/src/gtk_client.c
       t@@ -239,6 +239,11 @@ void NewGame(GtkWidget *widget, gpointer data)
            else
              return;
          }
       +
       +  /* Save the configuration, so we can restore those elements that get
       +   * overwritten when we connect to a dopewars server */
       +  BackupConfig();
       +
          NewGameDialog();
        }