From: Perttu Ahola Date: Sun, 4 Mar 2012 14:29:04 +0000 (+0200) Subject: Small fix in getHitParams X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=f1cb91cd931bed056bdbe37938d141e2ea068b89;p=zefram%2Fminetest%2Fminetest_engine.git Small fix in getHitParams --- 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)