Fix digging: Don't stop if the angle is too steep

floating-point
Julius Michaelis 2012-10-03 23:46:39 +02:00
parent 7b0ee6377c
commit 4d65c480ea
1 changed files with 1 additions and 1 deletions

View File

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