Use float constants.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
mbjornstk
2010-07-05 00:24:09 +00:00
parent 6c7cdb1b7b
commit 27c007a8fa

View File

@@ -43,9 +43,12 @@
# define M_PI 3.14159265358979323846f /* As in Linux's math.h */
#endif
#define NINETY_DEGREE_RAD (M_PI/2.0f)
#define DEGREE_TO_RAD (M_PI/180.0f)
#define RAD_TO_DEGREE (180.0f/M_PI)
/* And we want float for everyone, not double */
const float M_PIf = 4.0f*atanf(1.0f);
#define NINETY_DEGREE_RAD (M_PIf/2.0f)
#define DEGREE_TO_RAD (M_PIf/180.0f)
#define RAD_TO_DEGREE (180.0f/M_PIf)
const int MAX_PLAYER_COUNT = 4;