Decrease sneak margin to fix phasing through thin walls
(cherry picked from commit 803428eaffc43a698ad5216a7c9b8d71e23bf3ff)
This commit is contained in:
parent
714de48c75
commit
365c63e99e
@ -1005,7 +1005,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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user