From f1cb91cd931bed056bdbe37938d141e2ea068b89 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 4 Mar 2012 16:29:04 +0200 Subject: Small fix in getHitParams --- src/tool.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tool.cpp') 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) -- cgit v1.2.3