Skip to content

Commit

Permalink
Change repeat_place_time min value to 0.15
Browse files Browse the repository at this point in the history
Previously it was 0.16. It is lowered to match the min value of the
repeat_dig_time setting which is 0.15.
  • Loading branch information
ryvnf committed Feb 9, 2024
1 parent 979feae commit 372a802
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builtin/settingtypes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ always_fly_fast (Always fly fast) bool true
# the place button.
#
# Requires: keyboard_mouse
repeat_place_time (Place repetition interval) float 0.25 0.16 2
repeat_place_time (Place repetition interval) float 0.25 0.15 2

# The minimum time in seconds it takes between repeated node removals when
# holding the dig button.
Expand Down
2 changes: 1 addition & 1 deletion minetest.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

# The time in seconds it takes between repeated node placements when holding
# the place button.
# type: float min: 0.16 max: 2
# type: float min: 0.15 max: 2
# repeat_place_time = 0.25

# The minimum time in seconds it takes between repeated node removals when
Expand Down
2 changes: 1 addition & 1 deletion src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4434,7 +4434,7 @@ void Game::readSettings()
m_cache_enable_fog = g_settings->getBool("enable_fog");
m_cache_mouse_sensitivity = g_settings->getFloat("mouse_sensitivity", 0.001f, 10.0f);
m_cache_joystick_frustum_sensitivity = std::max(g_settings->getFloat("joystick_frustum_sensitivity"), 0.001f);
m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.16f, 2.0);
m_repeat_place_time = g_settings->getFloat("repeat_place_time", 0.15f, 2.0f);

m_cache_enable_noclip = g_settings->getBool("noclip");
m_cache_enable_free_move = g_settings->getBool("free_move");
Expand Down

0 comments on commit 372a802

Please sign in to comment.