From 035524b04fe44ef1e4725e957a3b8c075aca1452 Mon Sep 17 00:00:00 2001
From: SimpleStation14 <130339894+SimpleStation14@users.noreply.github.com>
Date: Tue, 30 Apr 2024 13:51:06 -0700
Subject: [PATCH] Mirror: Fix arrivals not docking on spinning stations (#158)
## Mirror of PR #26033: [Fix arrivals not docking on spinning
stations](https://github.com/space-wizards/space-station-14/pull/26033)
from
[space-wizards](https://github.com/space-wizards)/[space-station-14](https://github.com/space-wizards/space-station-14)
###### `9e2e51431938b2df9391939fe499f8963b297292`
PR opened by
ShadowCommander at 2024-03-12 09:44:08 UTC
PR merged by web-flow at
2024-03-12 12:57:35 UTC
---
PR changed 1 files with 1 additions and 1 deletions.
The PR had the following labels:
- Issue: Bug
- Size: Very Small
---
Original Body
>
>
>
>
> ## About the PR
>
>
> Angle tolerance was too tight for the arrivals shuttle to dock on
station when it was spinning.
>
> Changed the tolerance from 0.01 to 0.15.
>
> Fixes #25901
>
> ## Why / Balance
>
>
> ## Technical details
>
>
> ## Media
>
>
> - [x] I have added screenshots/videos to this PR showcasing its
changes ingame, **or** this PR does not require an ingame showcase
>
> ## Breaking changes
>
>
> **Changelog**
>
>
>
> :cl:
> - fix: Fixed arrivals shuttle not docking with the station when it was
slowly spinning.
>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
---
Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs b/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs
index 7bc1be02e37..e46a7c715ff 100644
--- a/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs
+++ b/Content.Server/Shuttles/Systems/DockingSystem.Shuttle.cs
@@ -134,7 +134,7 @@ private bool CanDock(
foreach (var config in configs)
{
- if (config.Coordinates.Equals(coordinates) && config.Angle.EqualsApprox(angle, 0.01))
+ if (config.Coordinates.Equals(coordinates) && config.Angle.EqualsApprox(angle, 0.15))
{
return config;
}