From: Perttu Ahola Date: Sun, 4 Mar 2012 14:29:04 +0000 (+0200) Subject: Small fix in getHitParams X-Git-Tag: 0.4.dev-20120318~95 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f1cb91cd931bed056bdbe37938d141e2ea068b89;p=oweals%2Fminetest.git Small fix in getHitParams --- 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)