1
0

Decrease sneak margin to fix phasing through thin walls

This commit is contained in:
Maksym H 2023-08-03 01:16:43 +03:00
parent 0b4dda3c4a
commit 803428eaff

View File

@ -997,7 +997,7 @@ void LocalPlayer::old_move(f32 dtime, Environment *env, f32 pos_max_d,
std::fabs(player_p2df.Y - node_p2df.Y)); std::fabs(player_p2df.Y - node_p2df.Y));
if (distance_f > min_distance_f || 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; continue;
// The node to be sneaked on has to be walkable // The node to be sneaked on has to be walkable