Skip to content

Commit

Permalink
Potential Windows Fix.
Browse files Browse the repository at this point in the history
I learned it is bad practice to use c defines for numeric constants.
  • Loading branch information
Ghoster738 committed Jul 27, 2024
1 parent 52a6ccf commit 34c9849
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Data/Mission/ObjResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <glm/geometric.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <algorithm>
#define _USE_MATH_DEFINES // Tell cmath to include M_SQRT2
#include <cmath>
#include <fstream>
#include <cassert>
Expand Down Expand Up @@ -264,7 +263,7 @@ int Data::Mission::ObjResource::Primitive::setCircle(const VertexData& vertex_da

triangle.color = glm::u8vec4( v[1], v[2], v[3], 0xff );

const float UNIT_45_DEGREES = M_SQRT2 / 2.0;
const float UNIT_45_DEGREES = 0.707106781187; // M_SQRT2 / 2.0;

const glm::vec2 circle_quadrant[2][3] = {
// Triangle 0
Expand Down

0 comments on commit 34c9849

Please sign in to comment.