open autosave file for writing, not reading
authorBradley Bell <btb@icculus.org>
Fri, 17 Dec 2004 09:16:59 +0000 (09:16 +0000)
committerBradley Bell <btb@icculus.org>
Fri, 17 Dec 2004 09:16:59 +0000 (09:16 +0000)
ChangeLog
main/state.c

index bcfed4c..4bc7451 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-17  Chris Taylor  <c.taylor@student.curtin.edu.au>
+
+       * main/state.c: open autosave file for writing, not reading
+
 2004-12-07  Chris Taylor  <c.taylor@student.curtin.edu.au>
 
        * 2d/font.c: Initialise the dataptr member correctly.
index 880363b..9379192 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: state.c,v 1.17 2004-12-01 12:48:13 btb Exp $ */
+/* $Id: state.c,v 1.18 2004-12-17 09:16:59 btb Exp $ */
 /*
 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
@@ -557,7 +557,7 @@ int state_save_all(int between_levels, int secret_save, char *filename_override)
        if (!filename_override) {
                PHYSFS_file *tfp;
 
-               tfp = PHYSFS_openRead(filename);
+               tfp = PHYSFS_openWrite(filename);
 
                if ( tfp ) {
                        char    newname[128];