From f1cb91cd931bed056bdbe37938d141e2ea068b89 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 4 Mar 2012 16:29:04 +0200 Subject: [PATCH] Small fix in getHitParams --- src/tool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tool.cpp b/src/tool.cpp index 38994c62..da7ee73d 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) -- 2.30.2