Fix #3955 (player dying on login).
authorNathanaƫl Courant <Ekdohibs@users.noreply.github.com>
Tue, 5 Apr 2016 23:11:36 +0000 (01:11 +0200)
committerest31 <est31@users.noreply.github.com>
Tue, 5 Apr 2016 23:11:36 +0000 (01:11 +0200)
commit15e1dcc020ca5c64e4b5b306529e513cb2b97bef
treee37f2fbc1e52b76cc2fe0fa50d5fe8d1214cbb3a
parent24b32ab09d1967866ddc092cadc6f6d678dac0c6
Fix #3955 (player dying on login).

It was caused by player not moving because fall was prevented, but their
velocity still increasing, causing fatal fall damage when world was
finally loaded. This commit fixes it by setting player velocity to zero
when the world around them is not loaded.
src/collision.cpp