From 803428eaffc43a698ad5216a7c9b8d71e23bf3ff Mon Sep 17 00:00:00 2001 From: Maksym H Date: Thu, 3 Aug 2023 01:16:43 +0300 Subject: [PATCH] Decrease sneak margin to fix phasing through thin walls --- src/client/localplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/localplayer.cpp b/src/client/localplayer.cpp index b58ad7fcc..f3029c6c2 100644 --- a/src/client/localplayer.cpp +++ b/src/client/localplayer.cpp @@ -997,7 +997,7 @@ void LocalPlayer::old_move(f32 dtime, Environment *env, f32 pos_max_d, std::fabs(player_p2df.Y - node_p2df.Y)); if (distance_f > min_distance_f || - max_axis_distance_f > 0.5f * BS + sneak_max + 0.1f * BS) + max_axis_distance_f > 0.5f * BS + sneak_max + 0.05f * BS) continue; // The node to be sneaked on has to be walkable