From 142e2b502d27d6a9f25dc7d269309cd90a435a5c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 26 Oct 2024 18:29:44 +0200 Subject: [PATCH] A bit climb factor cleanup --- doc/lua_api.md | 8 ++++---- src/nodedef.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/lua_api.md b/doc/lua_api.md index e9d1934670b44..e4f70c71fb9ef 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -9826,11 +9826,11 @@ Used by `core.register_node`. -- affected by the `movement_liquid_*` settings. climb_factor = 1.0, - -- The speed at which a climbable node can be climbed is multiplied - -- with this number. Must not be negative. No effect if node isn't - -- climbable. + -- The speed at which a climbable node can be climbed up and down + -- is multiplied by this number. Must not be negative. No effect if + -- node isn't climbable. -- Note: The base climbing speed is controlled by the setting - -- `movement_speed_climb`. + -- `movement_speed_climb` multiplied by the physics override `speed_climb`. buildable_to = false, -- If true, placed nodes can replace this node diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 25b990cd149f7..465694a735194 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -427,7 +427,7 @@ void ContentFeatures::reset() move_resistance = 0; liquid_move_physics = false; post_effect_color_shaded = false; - climb_factor = 1.0; + climb_factor = 1.0f; } void ContentFeatures::setAlphaFromLegacy(u8 legacy_alpha)