From c5ea0ef29c303bc9a56069a4a8b3d840327b78b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:10:00 +0200 Subject: [PATCH] never compensate the rotation of a black hole --- src/ts/starSystem/starSystemController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ts/starSystem/starSystemController.ts b/src/ts/starSystem/starSystemController.ts index 14cc1c19e..290a3d0a0 100644 --- a/src/ts/starSystem/starSystemController.ts +++ b/src/ts/starSystem/starSystemController.ts @@ -359,6 +359,8 @@ export class StarSystemController { } // and never compensate the rotation of a space station shouldCompensateRotation = shouldCompensateRotation && !(nearestOrbitalObject instanceof SpaceStation); + // also never compensate the rotation of a black hole + shouldCompensateRotation = shouldCompensateRotation && !(nearestOrbitalObject instanceof BlackHole); // ROTATION COMPENSATION // If we have to compensate the rotation of the nearest body, there are multiple things to take into account