Skip to content

Commit

Permalink
fixed precision=double
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Oct 1, 2024
1 parent 32f9bf1 commit 1346f79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/2d/graphs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ DebugDraw2DGraph::GraphPosition DebugDraw2DGraph::get_corner() const {
}

void DebugDraw2DGraph::set_line_width(const real_t _width) {
line_width = Math::clamp(_width, 1.0f, 32.0f);
line_width = Math::clamp(_width, (real_t)1.0, (real_t)32.0);
}

real_t DebugDraw2DGraph::get_line_width() const {
Expand Down
2 changes: 1 addition & 1 deletion src/3d/config_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ bool DebugDraw3DConfig::is_use_frustum_culling() const {
}

void DebugDraw3DConfig::set_frustum_length_scale(const real_t &_distance) {
frustum_length_scale = Math::clamp(_distance, 0.0f, 1.0f);
frustum_length_scale = Math::clamp(_distance, (real_t)0.0, (real_t)1.0);
}

real_t DebugDraw3DConfig::get_frustum_length_scale() const {
Expand Down

0 comments on commit 1346f79

Please sign in to comment.