mirror of
https://github.com/minetest/minetest.git
synced 2024-11-05 07:13:46 +01:00
Fix shift-descend to ladders from a floor
This commit is contained in:
parent
cc47ff7c4c
commit
0e6f7a21c6
@ -150,6 +150,8 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
|
||||
position.X = rangelim(position.X, lwn_f.X-maxd, lwn_f.X+maxd);
|
||||
position.Z = rangelim(position.Z, lwn_f.Z-maxd, lwn_f.Z+maxd);
|
||||
|
||||
if(!is_climbing)
|
||||
{
|
||||
f32 min_y = lwn_f.Y + 0.5*BS;
|
||||
if(position.Y < min_y)
|
||||
{
|
||||
@ -159,6 +161,7 @@ void LocalPlayer::move(f32 dtime, Map &map, f32 pos_max_d,
|
||||
m_speed.Y = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Calculate player collision box (new and old)
|
||||
|
Loading…
Reference in New Issue
Block a user