1.08 1.08
authorGwyn Ciesla <limburgher@gmail.com>
Fri, 6 Jan 2012 02:57:57 +0000 (20:57 -0600)
committerGwyn Ciesla <limburgher@gmail.com>
Fri, 6 Jan 2012 02:57:57 +0000 (20:57 -0600)
Fixed filename declarations for gcc 4.7.0.

main.cpp

index 4b26d55..8264dfa 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -48,7 +48,7 @@ const int landershotmax = 10;
 const int landermax = 12;
 const int crawlermax = 6;
 const int missilemax = 3;
-const float version = 1.07;
+const float version = 1.08;
 
 int score;
 int lives;
@@ -538,9 +538,9 @@ int main(int argc, char *argv[]){
     };
     fclose(scorefile);
   } else {
-    FILE *scorefile = fopen(home, "w");
-    fputs("0\n", scorefile);
-    fclose(scorefile);
+    FILE *writescorefile = fopen(home, "w");
+    fputs("0\n", writescorefile);
+    fclose(writescorefile);
     hscore = 0;
   };