1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 14:55:13 -05:00

Small fix in getHitParams

This commit is contained in:
Perttu Ahola 2012-03-04 16:29:04 +02:00
parent 910186905f
commit f1cb91cd93

View File

@ -135,6 +135,8 @@ HitParams getHitParams(const ItemGroupList &groups,
DigParams digprop = getDigParams(groups, tp, DigParams digprop = getDigParams(groups, tp,
time_from_last_punch); 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 // Damage in hp is equivalent to nodes dug in time_from_last_punch
s16 hp = 0; s16 hp = 0;
if(digprop.diggable) if(digprop.diggable)