mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +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