aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-10-01 14:21:24 +0000
committerGitHub <noreply@github.com>2021-10-01 16:21:24 +0200
commit21113ad4105dd3fb181b3d0638b907af94a352ab (patch)
tree9cd1346f6aff8968c23e2447e50d4469b888b01b /src/nodedef.h
parentf5040707fe7cf9f24274379598527d6298c5818c (diff)
downloadminetest-21113ad4105dd3fb181b3d0638b907af94a352ab.tar.gz
minetest-21113ad4105dd3fb181b3d0638b907af94a352ab.tar.bz2
minetest-21113ad4105dd3fb181b3d0638b907af94a352ab.zip
Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 8a6d88071..ea50d4281 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -376,11 +376,15 @@ struct ContentFeatures
u32 damage_per_second;
// client dig prediction
std::string node_dig_prediction;
+ // how slow players move through
+ u8 move_resistance = 0;
// --- LIQUID PROPERTIES ---
// Whether the node is non-liquid, source liquid or flowing liquid
enum LiquidType liquid_type;
+ // If true, movement (e.g. of players) inside this node is liquid-like.
+ bool liquid_move_physics;
// If the content is liquid, this is the flowing version of the liquid.
std::string liquid_alternative_flowing;
content_t liquid_alternative_flowing_id;