Skip to content

Commit 3d6d66b

Browse files
committedJul 2, 2014
Fix inversion of full_punch_interval
1 parent 567dea2 commit 3d6d66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/tool.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ HitParams getHitParams(const ItemGroupList &armor_groups,
166166
for(std::map<std::string, s16>::const_iterator
167167
i = tp->damageGroups.begin(); i != tp->damageGroups.end(); i++){
168168
s16 armor = itemgroup_get(armor_groups, i->first);
169-
damage += i->second * rangelim(time_from_last_punch * full_punch_interval, 0.0, 1.0)
169+
damage += i->second * rangelim(time_from_last_punch / full_punch_interval, 0.0, 1.0)
170170
* armor / 100.0;
171171
}
172172

0 commit comments

Comments
 (0)
Please sign in to comment.