From a5b88a0c9ae718243a95da42df7497b116e82aec Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Tue, 30 Dec 2003 07:41:36 +0000 Subject: [PATCH] Fixed parse error. SVN-Revision: 81 --- src/gameloop.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gameloop.c b/src/gameloop.c index 91cf437ef..2a1cfa192 100644 --- a/src/gameloop.c +++ b/src/gameloop.c @@ -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(¤t_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(¤t_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 +} -- 2.11.0