Fixed more inappropriate variable decl's.
authorBill Kendrick <nbs@sonic.net>
Sun, 15 Feb 2004 10:24:38 +0000 (10:24 +0000)
committerBill Kendrick <nbs@sonic.net>
Sun, 15 Feb 2004 10:24:38 +0000 (10:24 +0000)
SVN-Revision: 122

src/high_scores.c

index 4327b83..22210c0 100644 (file)
@@ -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");