1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-21 20:05:45 +02:00

Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)

This commit is contained in:
Wuzzy
2021-10-01 14:21:24 +00:00
committed by GitHub
parent f5040707fe
commit 21113ad410
15 changed files with 288 additions and 44 deletions

View File

@@ -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;