From: Bill Kendrick Date: Tue, 30 Dec 2003 07:41:36 +0000 (+0000) Subject: Fixed parse error. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a5b88a0c9ae718243a95da42df7497b116e82aec;p=supertux.git Fixed parse error. SVN-Revision: 81 --- 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 +}