Skip to content

Commit

Permalink
A bit climb factor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuzzy2 committed Dec 23, 2024
1 parent 1a72e15 commit 45b8a3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -9850,11 +9850,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

Expand Down
2 changes: 1 addition & 1 deletion src/nodedef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,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)
Expand Down

0 comments on commit 45b8a3b

Please sign in to comment.