Skip to content
Snippets Groups Projects
Commit f1cb91cd authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Small fix in getHitParams

parent 91018690
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment