1
0
Fork 0

Decrease sneak margin to fix phasing through thin walls

(cherry picked from commit 803428eaff)
merge-requests/1/head
Maksym H 2023-08-03 01:16:43 +03:00 committed by mckaygerhard
parent 714de48c75
commit 365c63e99e
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,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