graphical exception [temporary solution]
performance fixes minor changes
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
struct Heading {
|
||||
|
||||
#define _2PI (2*M_PI)
|
||||
#define _2PI (2*(float)M_PI)
|
||||
|
||||
private:
|
||||
|
||||
@@ -105,10 +105,10 @@ public:
|
||||
};
|
||||
|
||||
namespace Headings {
|
||||
static const Heading RIGHT = Heading(M_PI*0/2);
|
||||
static const Heading UP = Heading(M_PI*1/2);
|
||||
static const Heading LEFT = Heading(M_PI*2/2);
|
||||
static const Heading DOWN = Heading(M_PI*3/2);
|
||||
static const Heading RIGHT = Heading((float)M_PI*0.0f/2.0f);
|
||||
static const Heading UP = Heading((float)M_PI*1.0f/2.0f);
|
||||
static const Heading LEFT = Heading((float)M_PI*2.0f/2.0f);
|
||||
static const Heading DOWN = Heading((float)M_PI*3.0f/2.0f);
|
||||
}
|
||||
|
||||
#endif // HEADING_H
|
||||
|
||||
Reference in New Issue
Block a user