Let player sink if they are not moving
This commit is contained in:
parent
293d28257c
commit
f1d564e324
@ -2114,7 +2114,8 @@ void ClientEnvironment::step(float dtime)
|
|||||||
|
|
||||||
f32 dtime_downcount = dtime;
|
f32 dtime_downcount = dtime;
|
||||||
|
|
||||||
free_move |= lplayer->in_liquid || lplayer->in_liquid_stable;
|
free_move |= (lplayer->in_liquid || lplayer->in_liquid_stable)
|
||||||
|
&& (fabs(lplayer->getSpeed().X) > .001 && fabs(lplayer->getSpeed().Y > 0.001));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Stuff that has a maximum time increment
|
Stuff that has a maximum time increment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user