From 31fb9ffedbf1f172d18d877dd676cc8a73ef05ba Mon Sep 17 00:00:00 2001 From: Yggdrasil75 Date: Wed, 4 Mar 2026 14:34:40 -0500 Subject: [PATCH] asdf --- util/sim/planet.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/sim/planet.hpp b/util/sim/planet.hpp index 80e9bf7..e6cc7f5 100644 --- a/util/sim/planet.hpp +++ b/util/sim/planet.hpp @@ -181,6 +181,7 @@ public: Octree grid; std::vector plates; std::mt19937 rng = std::mt19937(42); + bool starAdded = false; planetsim() { config = planetConfig(); @@ -780,6 +781,7 @@ public: } void addStar() { + if (starAdded) return; TIME_FUNCTION; const float realEarthRadiusKm = 6371.0f; @@ -836,6 +838,7 @@ public: grid.optimize(); config.currentStep = 1; std::cout << "Star generation complete. Placed " << starPoints << " nodes." << std::endl; + starAdded = true; } void addMoon() {