diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2022-08-12 11:17:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 10:17:02 +0100 |
commit | c8ee755c05ca4410b9b1e816a9244b3cf303d3fe (patch) | |
tree | 25a898cc692ba6a996f32d8248dde153847cd539 /src/client/clientenvironment.cpp | |
parent | df1d215f4823b82f704b06eae0179c5e6c6b97af (diff) | |
download | minetest-c8ee755c05ca4410b9b1e816a9244b3cf303d3fe.tar.xz |
Physics overrides: Move values to a common struct (#12591)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/client/clientenvironment.cpp')
-rw-r--r-- | src/client/clientenvironment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/clientenvironment.cpp b/src/client/clientenvironment.cpp index 183a95007..5dc10f48f 100644 --- a/src/client/clientenvironment.cpp +++ b/src/client/clientenvironment.cpp @@ -199,7 +199,7 @@ void ClientEnvironment::step(float dtime) v3f speed = lplayer->getSpeed(); if (!is_climbing && !lplayer->in_liquid) speed.Y -= lplayer->movement_gravity * - lplayer->physics_override_gravity * dtime_part * 2.0f; + lplayer->physics_override.gravity * dtime_part * 2.0f; // Liquid floating / sinking if (!is_climbing && lplayer->in_liquid && |