Hoist comparison of const variable outside of loop in getzrange()

git-svn-id: https://svn.eduke32.com/eduke32@7427 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-19 17:09:40 +00:00 committed by Christoph Oelckers
parent 95c9dba9df
commit 3220b1e4f9

View file

@ -1674,11 +1674,9 @@ restart_grand:
////////// Sprites //////////
if (dasprclipmask)
for (bssize_t i=0; i<clipsectnum; i++)
{
if (dasprclipmask==0)
break;
for (bssize_t j=headspritesect[clipsectorlist[i]]; j>=0; j=nextspritesect[j])
{
const int32_t cstat = sprite[j].cstat;