From: Bill Kendrick Date: Tue, 30 Dec 2003 07:42:14 +0000 (+0000) Subject: Fixed another parse error. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=87e7772fc764f505e82e405e4360950d7005e7fd;p=supertux.git Fixed another parse error. SVN-Revision: 82 --- diff --git a/src/gameloop.c b/src/gameloop.c index 2a1cfa192..a8a704b30 100644 --- a/src/gameloop.c +++ b/src/gameloop.c @@ -3875,15 +3875,15 @@ void savegame(void) void loadgame(char* filename) { -char savefile[300]; - -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); + char savefile[300]; + 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); -FILE* fi; fi = fopen(savefile, "rb");