diff --git a/source/build/include/build.h b/source/build/include/build.h index 9206ff836..5f95fb651 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -124,10 +124,6 @@ enum rendmode_t { # define YAX_NEXTWALLBIT(Cf) (1<<(10+Cf)) # define YAX_NEXTWALLBITS (YAX_NEXTWALLBIT(0)|YAX_NEXTWALLBIT(1)) - -int32_t get_alwaysshowgray(void); // editor only -void yax_updategrays(int32_t posze); - #ifdef YAX_ENABLE // More user tag hijacking: lotag/extra. :/ @@ -174,13 +170,9 @@ static FORCE_INLINE CONSTEXPR int32_t yax_waltosecmask(int32_t const walclipmask void yax_preparedrawrooms(void); void yax_drawrooms(void (*SpriteAnimFunc)(int32_t,int32_t,int32_t,int32_t,int32_t), int16_t sectnum, int32_t didmirror, int32_t smoothr); -# define YAX_SKIPSECTOR(i) if (graysectbitmap[(i)>>3]&pow2char[(i)&7]) continue -# define YAX_SKIPWALL(i) if (graywallbitmap[(i)>>3]&pow2char[(i)&7]) continue #else # define yax_preparedrawrooms() # define yax_drawrooms(SpriteAnimFunc, sectnum, didmirror, smoothr) -# define YAX_SKIPSECTOR(i) (i)=(i) -# define YAX_SKIPWALL(i) (i)=(i) #endif #define CLIPMASK0 (((1L)<<16)+1L) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index ff057d0e5..49f9a7687 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -230,11 +230,6 @@ static void getclosestpointonwall_internal(vec2_t const p, int32_t const dawall, ////////// YAX ////////// -int32_t numgraysects = 0; -uint8_t graysectbitmap[(MAXSECTORS+7)>>3]; -uint8_t graywallbitmap[(MAXWALLS+7)>>3]; -int32_t autogray = 0, showinnergray = 1; - #ifdef YAX_DEBUG // XXX: This could be replaced with the use of gethiticks(). double u64tickspersec; @@ -247,66 +242,6 @@ void faketimerhandler() { } -int32_t get_alwaysshowgray(void) -{ - return showinnergray || !(editorzrange[0]==INT32_MIN && editorzrange[1]==INT32_MAX); -} - -void yax_updategrays(int32_t posze) -{ - int32_t i, j; -#ifdef YAX_ENABLE - int32_t mingoodz=INT32_MAX, maxgoodz=INT32_MIN; -#else - UNREFERENCED_PARAMETER(posze); -#endif - - Bmemset(graysectbitmap, 0, sizeof(graysectbitmap)); - Bmemset(graywallbitmap, 0, sizeof(graywallbitmap)); - - for (i=0; i=0 || fb>=0) && (sector[i].ceilingz <= posze && posze <= sector[i].floorz)) - { - mingoodz = min(mingoodz, TrackerCast(sector[i].ceilingz)); - maxgoodz = max(maxgoodz, TrackerCast(sector[i].floorz)); - } -#endif - // update grayouts due to editorzrange - keep &= (sector[i].ceilingz >= editorzrange[0] && sector[i].floorz <= editorzrange[1]); - - if (!keep) // outside bounds, gray out! - graysectbitmap[i>>3] |= pow2char[i&7]; - } - -#ifdef YAX_ENABLE - if (autogray && mingoodz<=maxgoodz) - { - for (i=0; i>3] |= pow2char[i&7]; - } -#endif - - numgraysects = 0; - for (i=0; i>3]&pow2char[i&7]) - { - numgraysects++; - for (j=sector[i].wallptr; j>3] |= pow2char[j&7]; - } - } -} #if !defined YAX_ENABLE @@ -1212,8 +1147,6 @@ int32_t checksectorpointer(int16_t i, int16_t sectnum) if (j == sectnum) continue; - YAX_SKIPSECTOR(j); - startwall = sector[j].wallptr; endwall = startwall + sector[j].wallnum; for (k=startwall; kz); #endif if ((myflags&8)==0)