aboutsummaryrefslogtreecommitdiff
path: root/src/client/localplayer.h
diff options
context:
space:
mode:
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);