mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-03 06:54:08 +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…
x
Reference in New Issue
Block a user