From: Gwyn Ciesla Date: Fri, 6 Jan 2012 02:57:57 +0000 (-0600) Subject: 1.08 X-Git-Tag: 1.08 X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=4ba926027c95d784d283adb30ddf17b8da735056;p=curblaster.git 1.08 Fixed filename declarations for gcc 4.7.0. --- diff --git a/main.cpp b/main.cpp index 4b26d55..8264dfa 100644 --- 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; };