- removed pointless and non-functional null check

clipmapinfo is a static global variable, its address is never null.
This commit is contained in:
Christoph Oelckers 2020-02-12 00:42:34 +01:00
parent 9f9e59e3ba
commit 4d45117ca5

View file

@ -2485,7 +2485,7 @@ restart_grand:
// try and see whether this sprite's picnum has sector-like clipping data
i = pictoidx[spr->picnum];
// handle sector-like floor sprites separately
while ((&clipmapinfo != nullptr) && i>=0 && (cstat&32) != (clipmapinfo.sector[sectq[clipinfo[i].qbeg]].CM_CSTAT&32))
while (i>=0 && (cstat&32) != (clipmapinfo.sector[sectq[clipinfo[i].qbeg]].CM_CSTAT&32))
i = clipinfo[i].next;
if (i>=0 && clipspritenum<MAXCLIPNUM)
{