diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-10-01 14:21:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 16:21:24 +0200 |
commit | 21113ad4105dd3fb181b3d0638b907af94a352ab (patch) | |
tree | 9cd1346f6aff8968c23e2447e50d4469b888b01b /src/client/localplayer.h | |
parent | f5040707fe7cf9f24274379598527d6298c5818c (diff) | |
download | minetest-21113ad4105dd3fb181b3d0638b907af94a352ab.tar.gz minetest-21113ad4105dd3fb181b3d0638b907af94a352ab.tar.bz2 minetest-21113ad4105dd3fb181b3d0638b907af94a352ab.zip |
Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)
Diffstat (limited to 'src/client/localplayer.h')
-rw-r--r-- | src/client/localplayer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/localplayer.h b/src/client/localplayer.h index 345aec9d9..13b35ae4e 100644 --- a/src/client/localplayer.h +++ b/src/client/localplayer.h @@ -55,8 +55,8 @@ public: bool in_liquid = false; // This is more stable and defines the maximum speed of the player bool in_liquid_stable = false; - // Gets the viscosity of water to calculate friction - u8 liquid_viscosity = 0; + // Slows down the player when moving through + u8 move_resistance = 0; bool is_climbing = false; bool swimming_vertical = false; bool swimming_pitch = false; |