From 3dc8f945820e08c698d4aed66f4f7bf4a9eb9401 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 17 Sep 2008 19:49:24 +0000 Subject: Move finecosine variable into tables.c. Subversion-branch: /branches/raven-branch Subversion-revision: 1239 --- src/doom/r_main.c | 11 ----------- src/tables.c | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/doom/r_main.c b/src/doom/r_main.c index e6a08691..7ea2a329 100644 --- a/src/doom/r_main.c +++ b/src/doom/r_main.c @@ -105,17 +105,6 @@ int viewangletox[FINEANGLES/2]; // from clipangle to -clipangle. angle_t xtoviewangle[SCREENWIDTH+1]; - -// UNUSED. -// The finetangentgent[angle+FINEANGLES/4] table -// holds the fixed_t tangent values for view angles, -// ranging from INT_MIN to 0 to INT_MAX. -// fixed_t finetangent[FINEANGLES/2]; - -// fixed_t finesine[5*FINEANGLES/4]; -const fixed_t* finecosine = &finesine[FINEANGLES/4]; - - 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 ffafeb7e..9c014513 100644 --- a/src/tables.c +++ b/src/tables.c @@ -1866,7 +1866,7 @@ const int finesine[10240] = 65534,65535,65535,65535,65535,65535,65535,65535 }; - +const fixed_t *finecosine = &finesine[FINEANGLES/4]; const angle_t tantoangle[2049] = { -- cgit v1.2.3