mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +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 fs;
|
||||
err=fscanf(f, "%d%d%d%d", &vid.xres, &vid.yres, &fs, &vid.fsize);
|
||||
if(!err)
|
||||
if(err != 4)
|
||||
loadNewConfig(f);
|
||||
else {
|
||||
vid.full = fs;
|
||||
|
Loading…
Reference in New Issue
Block a user