From 1d2a78c91e224c382c6fd1ad12c33b5c8cbcfee4 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Wed, 18 Aug 2021 22:19:04 +0300 Subject: [PATCH] Update Areas.cpp --- module/Core/Areas.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/Core/Areas.cpp b/module/Core/Areas.cpp index effd3133..666e9eb2 100644 --- a/module/Core/Areas.cpp +++ b/module/Core/Areas.cpp @@ -53,7 +53,7 @@ void Area::AddCircleEx(SQFloat cx, SQFloat cy, SQFloat cr, SQInteger num_segment CheckLock(); // Get the current angle #ifdef SQUSEDOUBLE - SQFloat theta = 2.0d * SQMOD_PI64 * static_cast< SQFloat >(i) / static_cast< SQFloat >(num_segments); + SQFloat theta = 2.0 * SQMOD_PI64 * static_cast< SQFloat >(i) / static_cast< SQFloat >(num_segments); #else SQFloat theta = 2.0f * SQMOD_PI * static_cast< SQFloat >(i) / static_cast< SQFloat >(num_segments); #endif // SQUSEDOUBLE @@ -62,9 +62,9 @@ void Area::AddCircleEx(SQFloat cx, SQFloat cy, SQFloat cr, SQInteger num_segment // Calculate the y component SQFloat y = (cr * std::sin(theta)) + cy; // Insert the point into the list - mPoints.emplace_back(x, y); + mPoints.emplace_back(static_cast< Vector2::Value >(x), static_cast< Vector2::Value >(y)); // Update the bounding box - Expand(x, y); + Expand(static_cast< Vector2::Value >(x), static_cast< Vector2::Value >(y)); } }