]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Overlay stack sorting fix (#36103)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Wed, 26 Mar 2025 20:40:13 +0000 (21:40 +0100)
committerGitHub <noreply@github.com>
Wed, 26 Mar 2025 20:40:13 +0000 (21:40 +0100)
* round float before sorting

* weh

Content.Client/Administration/AdminNameOverlay.cs

index 9fb93e926ca478b7059e0cd352dcdc13a7ed88ba..c0f31f1e3d063a04111bd9e4ed2edb46899e3cf7 100644 (file)
@@ -95,7 +95,7 @@ internal sealed class AdminNameOverlay : Overlay
                 continue;
 
             // Get on-screen coordinates of player
-            var screenCoordinates = _eyeManager.WorldToScreen(aabb.Center);
+            var screenCoordinates = _eyeManager.WorldToScreen(aabb.Center).Rounded();
 
             sortable.Add((info, aabb, entity.Value, screenCoordinates));
         }