Small fix in getHitParams

master
Perttu Ahola 2012-03-04 16:29:04 +02:00
parent 910186905f
commit f1cb91cd93
1 changed files with 2 additions and 0 deletions

View File

@ -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)