summaryrefslogtreecommitdiff
path: root/src/tool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool.cpp')
-rw-r--r--src/tool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tool.cpp b/src/tool.cpp
index 38994c620..da7ee73dc 100644
--- a/src/tool.cpp
+++ b/src/tool.cpp
@@ -135,6 +135,8 @@ HitParams getHitParams(const ItemGroupList &groups,
DigParams digprop = getDigParams(groups, tp,
time_from_last_punch);
+ if(time_from_last_punch > tp->full_punch_interval)
+ time_from_last_punch = tp->full_punch_interval;
// Damage in hp is equivalent to nodes dug in time_from_last_punch
s16 hp = 0;
if(digprop.diggable)