Fixed parse error.
authorBill Kendrick <nbs@sonic.net>
Tue, 30 Dec 2003 07:41:36 +0000 (07:41 +0000)
committerBill Kendrick <nbs@sonic.net>
Tue, 30 Dec 2003 07:41:36 +0000 (07:41 +0000)
SVN-Revision: 81

src/gameloop.c

index 91cf437..2a1cfa1 100644 (file)
@@ -3843,15 +3843,15 @@ void drawresultscreen(void)
 
 void savegame(void)
 {
-char savefile[300];
+  char savefile[300];
+  time_t current_time = time(NULL);
+  struct tm* time_struct;
+  FILE* fi;
 
-time_t current_time = time(NULL);
-struct tm* time_struct;
-time_struct = localtime(&current_time);
-sprintf(savefile,"%s/%d-%d-%d-%d.save",st_save_dir,time_struct->tm_year+1900,time_struct->tm_mon,time_struct->tm_mday,time_struct->tm_hour);
-printf("%s",savefile);
+  time_struct = localtime(&current_time);
+  sprintf(savefile,"%s/%d-%d-%d-%d.save",st_save_dir,time_struct->tm_year+1900,time_struct->tm_mon,time_struct->tm_mday,time_struct->tm_hour);
+  printf("%s",savefile);
 
-FILE* fi;
 
   fi = fopen(savefile, "wb");
 
@@ -3903,4 +3903,4 @@ FILE* fi;
    fclose(fi);
   }
 
-}
\ No newline at end of file
+}