mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Bunch of small fixes (coding style, very unlikely errors, warning messages)
This commit is contained in:
parent
a230e1e736
commit
eda9214f81
9 changed files with 51 additions and 34 deletions
|
@ -268,8 +268,9 @@ void LocalPlayer::move(f32 dtime, Environment *env, f32 pos_max_d,
|
|||
if(nodemgr->get(map->getNode(p)).walkable == false)
|
||||
continue;
|
||||
// And the node above it has to be nonwalkable
|
||||
if(nodemgr->get(map->getNode(p+v3s16(0,1,0))).walkable == true)
|
||||
if(nodemgr->get(map->getNode(p+v3s16(0,1,0))).walkable == true) {
|
||||
continue;
|
||||
}
|
||||
if (!physics_override_sneak_glitch) {
|
||||
if (nodemgr->get(map->getNode(p+v3s16(0,2,0))).walkable)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue