Move definition of PI into puzzles.h. If nothing else, the definition in cube.c
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 31 May 2005 12:03:25 +0000 (12:03 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 31 May 2005 12:03:25 +0000 (12:03 +0000)
had a typo :)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5878 cda61777-01e9-0310-a592-d414129be87e

cube.c
net.c
netslide.c
puzzles.h
twiddle.c

diff --git a/cube.c b/cube.c
index bf24960..671918e 100644 (file)
--- a/cube.c
+++ b/cube.c
@@ -11,8 +11,6 @@
 
 #include "puzzles.h"
 
-#define PI 3.14159265358979323846264338327950884197169399
-
 #define MAXVERTICES 20
 #define MAXFACES 20
 #define MAXORDER 4
diff --git a/net.c b/net.c
index 447f4e3..40f68f9 100644 (file)
--- a/net.c
+++ b/net.c
@@ -12,8 +12,6 @@
 #include "puzzles.h"
 #include "tree234.h"
 
-#define PI 3.141592653589793238462643383279502884197169399
-
 #define MATMUL(xr,yr,m,x,y) do { \
     float rx, ry, xx = (x), yy = (y), *mat = (m); \
     rx = mat[0] * xx + mat[2] * yy; \
index b81a816..86efb2f 100644 (file)
@@ -13,8 +13,6 @@
 #include "puzzles.h"
 #include "tree234.h"
 
-#define PI 3.141592653589793238462643383279502884197169399
-
 #define MATMUL(xr,yr,m,x,y) do { \
     float rx, ry, xx = (x), yy = (y), *mat = (m); \
     rx = mat[0] * xx + mat[2] * yy; \
index de0f819..7b35896 100644 (file)
--- a/puzzles.h
+++ b/puzzles.h
@@ -12,6 +12,8 @@
 #define FALSE 0
 #endif
 
+#define PI 3.141592653589793238462643383279502884197169399
+
 #define lenof(array) ( sizeof(array) / sizeof(*(array)) )
 
 #define STR_INT(x) #x
index 273ce8c..66e8e95 100644 (file)
--- a/twiddle.c
+++ b/twiddle.c
@@ -20,8 +20,6 @@
 #define COORD(x)  ( (x) * TILE_SIZE + BORDER )
 #define FROMCOORD(x)  ( ((x) - BORDER + TILE_SIZE) / TILE_SIZE - 1 )
 
-#define PI 3.141592653589793238462643383279502884197169399
-
 #define ANIM_PER_RADIUS_UNIT 0.13F
 #define FLASH_FRAME 0.13F