aboutsummaryrefslogtreecommitdiff
path: root/src/client/localplayer.h
diff options
context:
space:
mode:
authorLars Müller <34514239+appgurueu@users.noreply.github.com>2022-09-20 10:55:51 +0200
committerGitHub <noreply@github.com>2022-09-20 10:55:51 +0200
commit1317cd12d74dba4ff765d6e18b0b30cdf42002a3 (patch)
tree417fcd478cf89fbf4912f816bec13cf8a4b6a9c5 /src/client/localplayer.h
parent11905a6db65e70c84683098711ce36958968c6c3 (diff)
downloadminetest-1317cd12d74dba4ff765d6e18b0b30cdf42002a3.tar.xz
Fix formula used for acceleration (#12353)
Diffstat (limited to 'src/client/localplayer.h')
-rw-r--r--src/client/localplayer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/localplayer.h b/src/client/localplayer.h
index a2fe1766d..b9b5e14c1 100644
--- a/src/client/localplayer.h
+++ b/src/client/localplayer.h
@@ -62,6 +62,8 @@ public:
bool swimming_vertical = false;
bool swimming_pitch = false;
+ f32 gravity = 0; // total downwards acceleration
+
void move(f32 dtime, Environment *env, f32 pos_max_d);
void move(f32 dtime, Environment *env, f32 pos_max_d,
std::vector<CollisionInfo> *collision_info);