Skip to content

Commit 77a3a8f

Browse files
committed
2 parents e6d88a8 + b5203a7 commit 77a3a8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LabExtended/Patches/Functions/Scp939/Scp939VisibilityPatch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static bool Prefix(Scp939VisibilityController __instance, ReferenceHub hu
3737
}
3838

3939
var module = __instance._scpRole.FpcModule;
40-
var range = __instance.BaseRangeForPlayer(hub, fpcRole as HumanRole);
40+
var range = __instance.BaseRangeForPlayer(hub, fpcRole);
4141

4242
range = Mathf.Max(range, __instance.DetectionRangeForPlayer(hub));
4343
range += module.MaxMovementSpeed * __instance._pingTolerance;
@@ -65,4 +65,4 @@ private static bool BaseValidateVisibility(ReferenceHub hub, ReferenceHub owner,
6565
return role is null || (role.VisibilityController.GetActiveFlags(owner) & ~ignoredFlags) == InvisibilityFlags.None;
6666
}
6767
}
68-
}
68+
}

0 commit comments

Comments
 (0)