diff --git a/src/r_main.c b/src/r_main.c index 1170b34144c4dd8ecaf2b25f23d12607f28804e4..a4e72cba9c38612dca21cd42ea5e9135108c515f 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -114,15 +114,6 @@ INT32 viewangletox[FINEANGLES/2]; // from clipangle to -clipangle. angle_t xtoviewangle[MAXVIDWIDTH+1]; -// UNUSED. -// The finetangentgent[angle+FINEANGLES/4] table -// holds the fixed_t tangent values for view angles, -// ranging from INT32_MIN to 0 to INT32_MAX. - -#if !(defined _NDS) || !(defined NONET) -fixed_t *finecosine = &finesine[FINEANGLES/4]; -#endif - lighttable_t *scalelight[LIGHTLEVELS][MAXLIGHTSCALE]; lighttable_t *scalelightfixed[MAXLIGHTSCALE]; lighttable_t *zlight[LIGHTLEVELS][MAXLIGHTZ]; diff --git a/src/tables.c b/src/tables.c index 6f0446e019d22f652220a5bbe1998e1e9c4bda75..47161e667d76473a16baa35e3175213258c77bf8 100644 --- a/src/tables.c +++ b/src/tables.c @@ -1960,9 +1960,9 @@ fixed_t finesine[10240] = 65531, 65531, 65532, 65532, 65533, 65533, 65534, 65534, 65534, 65535, 65535, 65535, 65535, 65535, 65535, 65535 }; -#endif - +fixed_t *finecosine = &finesine[FINEANGLES/4]; +#endif angle_t tantoangle[2049] = {