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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user