Remove blurry vision examine mispredict (#29633)
remove blurry vision examine mispredict
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using Content.Client.Verbs;
|
using Content.Client.Verbs;
|
||||||
using Content.Shared.Eye.Blinding;
|
|
||||||
using Content.Shared.Examine;
|
using Content.Shared.Examine;
|
||||||
using Content.Shared.IdentityManagement;
|
using Content.Shared.IdentityManagement;
|
||||||
using Content.Shared.Input;
|
using Content.Shared.Input;
|
||||||
@@ -16,8 +15,6 @@ using Robust.Shared.Utility;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Content.Shared.Eye.Blinding.Components;
|
|
||||||
using Robust.Client;
|
|
||||||
using static Content.Shared.Interaction.SharedInteractionSystem;
|
using static Content.Shared.Interaction.SharedInteractionSystem;
|
||||||
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
using static Robust.Client.UserInterface.Controls.BoxContainer;
|
||||||
using Content.Shared.Interaction.Events;
|
using Content.Shared.Interaction.Events;
|
||||||
@@ -360,10 +357,7 @@ namespace Content.Client.Examine
|
|||||||
|
|
||||||
FormattedMessage message;
|
FormattedMessage message;
|
||||||
|
|
||||||
// Basically this just predicts that we can't make out the entity if we have poor vision.
|
OpenTooltip(playerEnt.Value, entity, centeredOnCursor, false);
|
||||||
var canSeeClearly = !HasComp<BlurryVisionComponent>(playerEnt);
|
|
||||||
|
|
||||||
OpenTooltip(playerEnt.Value, entity, centeredOnCursor, false, knowTarget: canSeeClearly);
|
|
||||||
|
|
||||||
// Always update tooltip info from client first.
|
// Always update tooltip info from client first.
|
||||||
// If we get it wrong, server will correct us later anyway.
|
// If we get it wrong, server will correct us later anyway.
|
||||||
|
|||||||
Reference in New Issue
Block a user