Skip to content
Permalink
Browse files

Fix inversion of full_punch_interval

  • Loading branch information
Ekdohibs committed Jul 2, 2014
1 parent 567dea2 commit 3d6d66b181b894180164aa34aab7b2029bef1bf4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tool.cpp
@@ -166,7 +166,7 @@ HitParams getHitParams(const ItemGroupList &armor_groups,
for(std::map<std::string, s16>::const_iterator
i = tp->damageGroups.begin(); i != tp->damageGroups.end(); i++){
s16 armor = itemgroup_get(armor_groups, i->first);
damage += i->second * rangelim(time_from_last_punch * full_punch_interval, 0.0, 1.0)
damage += i->second * rangelim(time_from_last_punch / full_punch_interval, 0.0, 1.0)
* armor / 100.0;
}

0 comments on commit 3d6d66b

Please sign in to comment.
You can’t perform that action at this time.