From a2b7da728a258ce0079c04ea9c6d41e38d2f4ad8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 27 Mar 2020 19:46:36 +0100 Subject: [PATCH] unused variable 'gamecount' removed --- system.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/system.cpp b/system.cpp index da892aa8..58dd4d5a 100644 --- a/system.cpp +++ b/system.cpp @@ -42,7 +42,6 @@ EX bool autocheat; EX eWall canvas_default_wall = waNone; EX int truelotus; -EX int gamecount; EX int asteroids_generated, asteroid_orbs_generated; @@ -1055,8 +1054,6 @@ EX void loadsave() { #endif DEBBI(DF_INIT, ("loadSave")); - gamecount = 0; - FILE *f = fopen(scorefile, "rt"); havesave = f; if(!f) return; @@ -1068,7 +1065,6 @@ EX void loadsave() { char buf[120]; if(fgets(buf, 120, f) == NULL) break; if(buf[0] == 'H' && buf[1] == 'y') { - gamecount++; if(fscanf(f, "%s", buf) <= 0) break; sc.ver = buf; if(sc.ver[1] != '.') sc.ver = '0' + sc.ver;