mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
unused variable 'gamecount' removed
This commit is contained in:
parent
c6f9b1b7e2
commit
a2b7da728a
@ -42,7 +42,6 @@ EX bool autocheat;
|
|||||||
EX eWall canvas_default_wall = waNone;
|
EX eWall canvas_default_wall = waNone;
|
||||||
|
|
||||||
EX int truelotus;
|
EX int truelotus;
|
||||||
EX int gamecount;
|
|
||||||
|
|
||||||
EX int asteroids_generated, asteroid_orbs_generated;
|
EX int asteroids_generated, asteroid_orbs_generated;
|
||||||
|
|
||||||
@ -1055,8 +1054,6 @@ EX void loadsave() {
|
|||||||
#endif
|
#endif
|
||||||
DEBBI(DF_INIT, ("loadSave"));
|
DEBBI(DF_INIT, ("loadSave"));
|
||||||
|
|
||||||
gamecount = 0;
|
|
||||||
|
|
||||||
FILE *f = fopen(scorefile, "rt");
|
FILE *f = fopen(scorefile, "rt");
|
||||||
havesave = f;
|
havesave = f;
|
||||||
if(!f) return;
|
if(!f) return;
|
||||||
@ -1068,7 +1065,6 @@ EX void loadsave() {
|
|||||||
char buf[120];
|
char buf[120];
|
||||||
if(fgets(buf, 120, f) == NULL) break;
|
if(fgets(buf, 120, f) == NULL) break;
|
||||||
if(buf[0] == 'H' && buf[1] == 'y') {
|
if(buf[0] == 'H' && buf[1] == 'y') {
|
||||||
gamecount++;
|
|
||||||
if(fscanf(f, "%s", buf) <= 0) break;
|
if(fscanf(f, "%s", buf) <= 0) break;
|
||||||
sc.ver = buf;
|
sc.ver = buf;
|
||||||
if(sc.ver[1] != '.') sc.ver = '0' + sc.ver;
|
if(sc.ver[1] != '.') sc.ver = '0' + sc.ver;
|
||||||
|
Loading…
Reference in New Issue
Block a user