From: Bill Kendrick Date: Sun, 15 Feb 2004 10:24:38 +0000 (+0000) Subject: Fixed more inappropriate variable decl's. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ad68a893b788c2b7ff5fd39ce2839af9e7c46570;p=supertux.git Fixed more inappropriate variable decl's. SVN-Revision: 122 --- diff --git a/src/high_scores.c b/src/high_scores.c index 4327b8335..22210c09f 100644 --- a/src/high_scores.c +++ b/src/high_scores.c @@ -64,8 +64,9 @@ void load_hs(void) { FILE * fi; char temp[128]; - hs_score = 100; int c, strl; + + hs_score = 100; strcpy(hs_name, "Grandma\0"); c = 0; @@ -111,6 +112,10 @@ void load_hs(void) void save_hs(int score) { texture_type bkgd; + SDL_Event event; + FILE * fi; + + texture_load(&bkgd, DATA_PREFIX "/images/highscore/highscore.png", IGNORE_ALPHA); hs_score = score; @@ -118,7 +123,6 @@ void save_hs(int score) /* ask for player's name */ menumenu = MENU_HIGHSCORE; show_menu = 1; - SDL_Event event; while(show_menu) { texture_draw_bg(&bkgd, NO_UPDATE); @@ -131,8 +135,6 @@ void save_hs(int score) } - FILE * fi; - /* Try to open file: */ fi = opendata("w");