1
0
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:
Zeno Rogue 2019-10-22 12:05:22 +02:00
parent 0e3fc3a0f9
commit 80a6c4a580

View File

@ -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;