From 4b5b6de13cec155a320f073e49b1fe02ded2a360 Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 6 Apr 2018 01:42:47 +0000 Subject: [PATCH] Remove useless switch/case setup in nextpage() git-svn-id: https://svn.eduke32.com/eduke32@6813 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/engine.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 2d82fb12b..1b598b746 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -9948,9 +9948,8 @@ void nextpage(void) //sprintf(snotbuf,"Total: %d",k); //printext256((j>>5)*40+32,(j&31)*6,31,-1,snotbuf,1); - switch (qsetmode) + if (in3dmode()) { - case 200: begindrawing(); //{{{ for (bssize_t i=permtail; i!=permhead; i=((i+1)&(MAXPERMS-1))) { @@ -9979,20 +9978,16 @@ void nextpage(void) permtail = ((permtail+1)&(MAXPERMS-1)); } enddrawing(); //}}} - break; - - case 350: - case 480: - break; } faketimerhandler(); agecache(); #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)) spriteext[i].mdanimtims += mdtims - omdtims; #endif