mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
no more weird acting on loadConfig when the file is empty
This commit is contained in:
parent
0e3fc3a0f9
commit
80a6c4a580
@ -789,7 +789,7 @@ EX void loadConfig() {
|
|||||||
int err;
|
int err;
|
||||||
int fs;
|
int fs;
|
||||||
err=fscanf(f, "%d%d%d%d", &vid.xres, &vid.yres, &fs, &vid.fsize);
|
err=fscanf(f, "%d%d%d%d", &vid.xres, &vid.yres, &fs, &vid.fsize);
|
||||||
if(!err)
|
if(err != 4)
|
||||||
loadNewConfig(f);
|
loadNewConfig(f);
|
||||||
else {
|
else {
|
||||||
vid.full = fs;
|
vid.full = fs;
|
||||||
|
Loading…
Reference in New Issue
Block a user