Skip to content
Snippets Groups Projects
Commit d90c0b8f authored by James R.'s avatar James R.
Browse files

Don't check "Too many flats in level" with P_AddLevelFlatRuntime

Also moved the debug down in case anyone uses that.
parent 9cd101c6
Branches
Tags
No related merge requests found
...@@ -585,14 +585,10 @@ Ploadflat (levelflat_t *levelflat, const char *flatname) ...@@ -585,14 +585,10 @@ Ploadflat (levelflat_t *levelflat, const char *flatname)
if (strnicmp(levelflat[i].name, flatname, 8) == 0) if (strnicmp(levelflat[i].name, flatname, 8) == 0)
return i; return i;
} }
}
#ifndef ZDEBUG
CONS_Debug(DBG_SETUP, "flat #%03d: %s\n", atoi(sizeu1(numlevelflats)), levelflat->name);
#endif
if (numlevelflats >= MAXLEVELFLATS) if (numlevelflats >= MAXLEVELFLATS)
I_Error("Too many flats in level\n"); I_Error("Too many flats in level\n");
}
if (levelflat) if (levelflat)
levelflat += numlevelflats; levelflat += numlevelflats;
...@@ -656,6 +652,10 @@ flatfound: ...@@ -656,6 +652,10 @@ flatfound:
levelflat->u.flat.baselumpnum = LUMPERROR; levelflat->u.flat.baselumpnum = LUMPERROR;
} }
#ifndef ZDEBUG
CONS_Debug(DBG_SETUP, "flat #%03d: %s\n", atoi(sizeu1(numlevelflats)), levelflat->name);
#endif
return ( numlevelflats++ ); return ( numlevelflats++ );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment