diff --git a/source/build/src/a-c.cpp b/source/build/src/a-c.cpp index cf9881aba..f7cbad509 100644 --- a/source/build/src/a-c.cpp +++ b/source/build/src/a-c.cpp @@ -107,7 +107,7 @@ void hlineasm4(bssize_t cnt, int32_t skiploadincs, int32_t paloffs, uint32_t by, ///// Sloped ceiling/floor vertical line functions ///// -extern int32_t sloptable[16384]; +extern int32_t sloptable[32768]; void slopevlin(intptr_t p, int32_t i, intptr_t slopaloffs, bssize_t cnt, int32_t bx, int32_t by) { @@ -119,7 +119,7 @@ void slopevlin(intptr_t p, int32_t i, intptr_t slopaloffs, bssize_t cnt, int32_t slopalptr = (intptr_t *)slopaloffs; for (; cnt>0; cnt--) { - i = (sloptable[(bz>>6)+8192]); bz += bzinc; + i = (sloptable[(bz>>6)+16384]); bz += bzinc; u = bx+(inthi_t)globalx3*i; v = by+(inthi_t)globaly3*i; (*(char *)p) = *(char *)(((intptr_t)slopalptr[0])+gbuf[((u>>(32-glogx))<>(32-glogy))]); diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index c165bc947..cdc3f5a2e 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -164,7 +164,7 @@ int32_t globalx1, globaly2, globalx3, globaly3; } #endif -int32_t sloptable[16384]; +int32_t sloptable[32768]; static intptr_t slopalookup[16384]; // was 2048 static int32_t no_radarang2 = 0; @@ -3393,7 +3393,7 @@ static void tslopevlin(uint8_t *p, const intptr_t *slopalptr, bssize_t cnt, int3 do { - int const i = (sloptable[(bz>>6)+8192]); bz += bzinc; + int const i = (sloptable[(bz>>6)+16384]); bz += bzinc; uint32_t u = bx + xtou*i; uint32_t v = by + ytov*i; uint8_t ch = buf[((u>>(32-logx))<>(32-logy))]; @@ -3423,7 +3423,7 @@ static void mslopevlin(uint8_t *p, const intptr_t *slopalptr, bssize_t cnt, int3 do { - int const i = (sloptable[(bz>>6)+8192]); bz += bzinc; + int const i = (sloptable[(bz>>6)+16384]); bz += bzinc; uint32_t u = bx + xtou*i; uint32_t v = by + ytov*i; uint8_t ch = buf[((u>>(32-logx))<>(32-logy))]; @@ -7229,8 +7229,8 @@ static int32_t engineLoadTables(void) for (i=0; i<2048; i++) reciptable[i] = divscale30(2048, i+2048); - for (i=0; i<16384; i++) - sloptable[i] = krecipasm(i-8192); + for (i=0; i<32768; i++) + sloptable[i] = krecipasm(i-16384); for (i=0; i<=512; i++) sintable[i] = (int16_t)(16384.f * sinf((float)i * BANG2RAD));