Made sin/cos tables const.
Made the sin/cos/arcsin/arccos tables const and removed the redundant externs that were scattered about.
This commit is contained in:
parent
d5830bb440
commit
c3cc5eb878
27 changed files with 13 additions and 86 deletions
|
@ -61,9 +61,6 @@
|
|||
extern SHAPEHEADER **mainshapelist;
|
||||
extern SHAPEHEADER *testpaletteshapelist[];
|
||||
extern SCREENDESCRIPTORBLOCK ScreenDescriptorBlock;
|
||||
extern int sine[];
|
||||
extern int cosine[];
|
||||
extern int AdaptiveHazingFlag;
|
||||
extern int *Global_ShapeNormals;
|
||||
extern int *Global_ShapePoints;
|
||||
extern int *ItemPointers[];
|
||||
|
@ -391,15 +388,6 @@ int CompareFilenameCH(char *string1, char *string2)
|
|||
|
||||
*/
|
||||
|
||||
|
||||
#define remap_table_size (1 << (remap_table_rgb_bits * 3))
|
||||
|
||||
|
||||
#define cprt_info No
|
||||
#define cprt_cnt No
|
||||
|
||||
|
||||
|
||||
int NearestColour(int rs, int gs, int bs, unsigned char *palette)
|
||||
|
||||
{
|
||||
|
|
|
@ -37,9 +37,6 @@ typedef struct LONGLONGCH {
|
|||
|
||||
*/
|
||||
|
||||
extern int sine[];
|
||||
extern int cosine[];
|
||||
|
||||
#define GetSin(a) sine[a]
|
||||
#define GetCos(a) cosine[a]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue