mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 22:01:01 +00:00
Added debug messages for when REJECT lump is not loaded
This commit is contained in:
parent
f94dd510ad
commit
9b037164bc
1 changed files with 4 additions and 0 deletions
|
@ -1991,13 +1991,17 @@ static void P_LoadReject(lumpnum_t lumpnum)
|
||||||
if (!lumpname || memcmp(lumpname, "REJECT\0\0", 8) != 0)
|
if (!lumpname || memcmp(lumpname, "REJECT\0\0", 8) != 0)
|
||||||
{
|
{
|
||||||
rejectmatrix = NULL;
|
rejectmatrix = NULL;
|
||||||
|
CONS_Debug(DBG_SETUP, "P_LoadReject: No valid REJECT lump found\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
count = W_LumpLength(lumpnum);
|
count = W_LumpLength(lumpnum);
|
||||||
|
|
||||||
if (!count) // zero length, someone probably used ZDBSP
|
if (!count) // zero length, someone probably used ZDBSP
|
||||||
|
{
|
||||||
rejectmatrix = NULL;
|
rejectmatrix = NULL;
|
||||||
|
CONS_Debug(DBG_SETUP, "P_LoadReject: REJECT lump has size 0, will not be loaded\n");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
rejectmatrix = W_CacheLumpNum(lumpnum, PU_LEVEL);
|
rejectmatrix = W_CacheLumpNum(lumpnum, PU_LEVEL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue