mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fixing ladders again
This commit is contained in:
committed by
Giuseppe Bilotta
parent
8e67f4c4e6
commit
267744a568
@@ -1511,6 +1511,8 @@ void ClientEnvironment::step(float dtime)
|
||||
/*
|
||||
Get the speed the player is going
|
||||
*/
|
||||
bool is_climbing = lplayer->is_climbing;
|
||||
|
||||
f32 player_speed = 0.001; // just some small value
|
||||
player_speed = lplayer->getSpeed().getLength();
|
||||
|
||||
@@ -1568,7 +1570,7 @@ void ClientEnvironment::step(float dtime)
|
||||
v3f lplayerpos = lplayer->getPosition();
|
||||
|
||||
// Apply physics
|
||||
if(free_move == false)
|
||||
if(free_move == false && is_climbing == false)
|
||||
{
|
||||
// Gravity
|
||||
v3f speed = lplayer->getSpeed();
|
||||
|
Reference in New Issue
Block a user