Update engine (#13474)

This commit is contained in:
Leon Friedrich
2023-01-15 16:21:08 +13:00
committed by GitHub
parent 02aef68dff
commit 0875865d6d
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ public sealed class PopupOverlay : Overlay
if (mapPos.MapId != args.MapId)
continue;
var distance = (mapPos.Position - args.WorldBounds.Centre).Length;
var distance = (mapPos.Position - args.WorldBounds.Center).Length;
// Should handle fade here too wyci.
if (!args.WorldAABB.Contains(mapPos.Position) || !ExamineSystemShared.InRangeUnOccluded(viewPos, mapPos, distance,