- replaced YES/NO with true/false
[supertux.git] / src / high_scores.cpp
index 741dc62..0fc59dd 100644 (file)
@@ -31,15 +31,11 @@ FILE * opendata(char * mode)
   strcpy(filename, st_dir);
   /* Open the high score file: */
 
-#ifdef LINUX
-
+#ifndef WIN32
   strcat(filename, "/highscore");
 #else
-#ifdef WIN32
-
   strcat(filename, "/st_highscore.dat");
 #endif
-#endif
 
 
   /* Try opening the file: */
@@ -67,7 +63,8 @@ void load_hs(void)
 {
   FILE * fi;
   char temp[128];
-  int c, i, strl;
+  int strl;
+  unsigned int i, c;
 
   hs_score = 100;
   strcpy(hs_name, "Grandma\0");
@@ -121,7 +118,7 @@ void save_hs(int score)
   FILE * fi;
 
 
-  texture_load(&bkgd, DATA_PREFIX "/images/highscore/highscore.png", IGNORE_ALPHA);
+  texture_load(&bkgd, datadir + "/images/highscore/highscore.png", IGNORE_ALPHA);
 
   hs_score = score;