Remove useless switch/case setup in nextpage()

git-svn-id: https://svn.eduke32.com/eduke32@6813 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-06 01:42:47 +00:00
parent d2a3e2a70d
commit 4b5b6de13c

View file

@ -9948,9 +9948,8 @@ void nextpage(void)
//sprintf(snotbuf,"Total: %d",k); //sprintf(snotbuf,"Total: %d",k);
//printext256((j>>5)*40+32,(j&31)*6,31,-1,snotbuf,1); //printext256((j>>5)*40+32,(j&31)*6,31,-1,snotbuf,1);
switch (qsetmode) if (in3dmode())
{ {
case 200:
begindrawing(); //{{{ begindrawing(); //{{{
for (bssize_t i=permtail; i!=permhead; i=((i+1)&(MAXPERMS-1))) for (bssize_t i=permtail; i!=permhead; i=((i+1)&(MAXPERMS-1)))
{ {
@ -9979,20 +9978,16 @@ void nextpage(void)
permtail = ((permtail+1)&(MAXPERMS-1)); permtail = ((permtail+1)&(MAXPERMS-1));
} }
enddrawing(); //}}} enddrawing(); //}}}
break;
case 350:
case 480:
break;
} }
faketimerhandler(); faketimerhandler();
agecache(); agecache();
#ifdef USE_OPENGL #ifdef USE_OPENGL
omdtims = mdtims; mdtims = getticks(); omdtims = mdtims;
mdtims = getticks();
for (bssize_t i = 0; i < Numsprites; ++i) for (native_t i = 0; i < Numsprites; ++i)
if ((mdpause && spriteext[i].mdanimtims) || (spriteext[i].flags & SPREXT_NOMDANIM)) if ((mdpause && spriteext[i].mdanimtims) || (spriteext[i].flags & SPREXT_NOMDANIM))
spriteext[i].mdanimtims += mdtims - omdtims; spriteext[i].mdanimtims += mdtims - omdtims;
#endif #endif