render missing flats as SKY

Fixes #72, thanks @ice44.
This commit is contained in:
Fabian Greffrath 2020-03-03 22:05:59 +01:00
parent 6df32ddee9
commit 2da75c00fe

View File

@ -904,7 +904,11 @@ int R_FlatNumForName(const char *name) // killough -- const added
{
int i = (W_CheckNumForName)(name, ns_flats);
if (i == -1)
I_Error("R_FlatNumForName: %.8s not found", name);
{
// [FG] render missing flats as SKY
fprintf(stderr, "R_FlatNumForName: %.8s not found\n", name);
return skyflatnum;
}
return i - firstflat;
}