Let player sink if they are not moving

This commit is contained in:
OttoLidenbrock 2015-05-05 17:34:55 +10:00
parent 293d28257c
commit f1d564e324
1 changed files with 2 additions and 1 deletions

View File

@ -2114,7 +2114,8 @@ void ClientEnvironment::step(float 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