From cb03b87fad81ffc779d2ea0de0776ac758fe7eb8 Mon Sep 17 00:00:00 2001 From: Daniel W <39805490+weluvgoatz@users.noreply.github.com> Date: Thu, 13 Jun 2024 06:54:35 -0700 Subject: [PATCH] ugh --- src/object/bigsnowball.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object/bigsnowball.cpp b/src/object/bigsnowball.cpp index 92e42e4fe59..0a564861400 100644 --- a/src/object/bigsnowball.cpp +++ b/src/object/bigsnowball.cpp @@ -187,8 +187,8 @@ BigSnowball::spawn_particles() for (int i = 0; i < 8; i++) { Sector::get().add(m_sprite_name, "particle", - get_bbox().get_middle() + (15.f * Vector(std::cos(math::PI_4*i), std::sin(math::PI_4*i))), - ANCHOR_MIDDLE, (150.f * (glm::normalize(Vector(std::cos(math::PI_4*i), std::sin(math::PI_4*i))))) + + get_bbox().get_middle() + (15.f * Vector(std::cos(math::PI_4*static_cast(i)), std::sin(math::PI_4*static_cast(i)))), + ANCHOR_MIDDLE, (150.f * (glm::normalize(Vector(std::cos(math::PI_4*static_cast(i)), std::sin(math::PI_4*static_cast(i)))))) + Vector(gameRandom.randf(-40.f, 40.f), gameRandom.randf(-40.f, 40.f)), Vector(0.f, 1000.f), LAYER_OBJECTS + 1, true); }