forked from Mirrors/openclonk
Fix digging: Don't stop if the angle is too steep
parent
7b0ee6377c
commit
4d65c480ea
|
@ -102,7 +102,7 @@ public func FxShovelDigTimer(object clonk, effect, int time)
|
|||
if(fDigging)
|
||||
{
|
||||
// Adjust speed at current animation position
|
||||
var speed = clonk.ActMap.Dig.Speed*2;
|
||||
var speed = clonk.ActMap.Dig.Speed*2.0;
|
||||
|
||||
var iAnimation = GetEffect("IntDig", clonk).var1;
|
||||
var iPosition = clonk->GetAnimationPosition(iAnimation)*180/clonk->GetAnimationLength("Dig");
|
||||
|
|
Loading…
Reference in New Issue