]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix speech bubble occlusion being checked from the player's position instead of the...
authorDrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com>
Sat, 15 Jun 2024 21:35:05 +0000 (14:35 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 21:35:05 +0000 (17:35 -0400)
Content.Client/UserInterface/Systems/Chat/ChatUIController.cs

index 334ba6087380379b38dd3db27b56b25b65c5b540..904b922baa0b92de6e4ba3dbc538303c149434b2 100644 (file)
@@ -16,9 +16,8 @@ using Content.Client.UserInterface.Systems.Gameplay;
 using Content.Shared.Administration;
 using Content.Shared.CCVar;
 using Content.Shared.Chat;
-using Content.Shared.Decals;
 using Content.Shared.Damage.ForceSay;
-using Content.Shared.Examine;
+using Content.Shared.Decals;
 using Content.Shared.Input;
 using Content.Shared.Radio;
 using Robust.Client.GameObjects;
@@ -626,7 +625,7 @@ public sealed class ChatUIController : UIController
         var predicate = static (EntityUid uid, (EntityUid compOwner, EntityUid? attachedEntity) data)
             => uid == data.compOwner || uid == data.attachedEntity;
         var playerPos = player != null
-            ? _transform?.GetMapCoordinates(player.Value) ?? MapCoordinates.Nullspace
+            ? _eye.CurrentEye.Position
             : MapCoordinates.Nullspace;
 
         var occluded = player != null && _examine.IsOccluded(player.Value);