summaryrefslogtreecommitdiff
path: root/src/tables.h
diff options
context:
space:
mode:
authorSimon Howard2006-12-08 16:37:41 +0000
committerSimon Howard2006-12-08 16:37:41 +0000
commit136009e7505acc321c2b7f710929cb7d9b88a5b2 (patch)
tree8c3f0f0e97a9b9e12ea77dcff61eefb874305758 /src/tables.h
parentc1cc26b1addb275e1ca546fa4400d2be28673266 (diff)
downloadchocolate-doom-136009e7505acc321c2b7f710929cb7d9b88a5b2.tar.gz
chocolate-doom-136009e7505acc321c2b7f710929cb7d9b88a5b2.tar.bz2
chocolate-doom-136009e7505acc321c2b7f710929cb7d9b88a5b2.zip
Make trig tables const.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 770
Diffstat (limited to 'src/tables.h')
-rw-r--r--src/tables.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tables.h b/src/tables.h
index 54004d79..baf785ca 100644
--- a/src/tables.h
+++ b/src/tables.h
@@ -53,14 +53,14 @@
#define ANGLETOFINESHIFT 19
// Effective size is 10240.
-extern fixed_t finesine[5*FINEANGLES/4];
+extern const fixed_t finesine[5*FINEANGLES/4];
// Re-use data, is just PI/2 pahse shift.
-extern fixed_t* finecosine;
+extern const fixed_t *finecosine;
// Effective size is 4096.
-extern fixed_t finetangent[FINEANGLES/2];
+extern const fixed_t finetangent[FINEANGLES/2];
// Binary Angle Measument, BAM.
#define ANG45 0x20000000
@@ -79,7 +79,7 @@ typedef unsigned angle_t;
// Effective size is 2049;
// The +1 size is to handle the case when x==y
// without additional checking.
-extern angle_t tantoangle[SLOPERANGE+1];
+extern const angle_t tantoangle[SLOPERANGE+1];
// Utility function,
@@ -91,3 +91,4 @@ SlopeDiv
#endif
+