diff options
author | Hybrid Dog <ovvv@web.de> | 2017-04-10 22:07:52 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-04-19 02:01:15 +0100 |
commit | 858c72297409ca54092c3c908279d2a05fef58cd (patch) | |
tree | 9f2371377a60794da21381735cb496eb8efb92a2 /src | |
parent | cf37a5569002e83cc4d6916b39118ceba134da1b (diff) | |
download | minetest-858c72297409ca54092c3c908279d2a05fef58cd.tar.gz minetest-858c72297409ca54092c3c908279d2a05fef58cd.tar.bz2 minetest-858c72297409ca54092c3c908279d2a05fef58cd.zip |
Tools: Fix tool digging speed limit
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 7 | ||||
-rw-r--r-- | src/tool.cpp | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/game.cpp b/src/game.cpp index 198baeca3..bcf378e4e 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -3888,13 +3888,6 @@ void Game::handleDigging(const PointedThing &pointed, const v3s16 &nodepos, if (runData.nodig_delay_timer > 0.3) runData.nodig_delay_timer = 0.3; - // We want a slight delay to very little - // time consuming nodes - const float mindelay = 0.15; - - if (runData.nodig_delay_timer < mindelay) - runData.nodig_delay_timer = mindelay; - bool is_valid_position; MapNode wasnode = map.getNodeNoEx(nodepos, &is_valid_position); if (is_valid_position) { diff --git a/src/tool.cpp b/src/tool.cpp index 1877a1cf8..105102dd5 100644 --- a/src/tool.cpp +++ b/src/tool.cpp @@ -98,7 +98,7 @@ DigParams getDigParams(const ItemGroupList &groups, return DigParams(true, 0.5, 0, "dig_immediate"); case 3: //infostream<<"dig_immediate=3"<<std::endl; - return DigParams(true, 0.0, 0, "dig_immediate"); + return DigParams(true, 0.15, 0, "dig_immediate"); default: break; } |