forked from Mirrors/openclonk
#1710: Fix wrong animation on ladder after wall jump
The problem was that the call to Actmap.*.StartCallLadderOverloaded happend parallely with the ladder search effect and finished after the search effect call was finished, starting a wall jump animation after the Clonk grabbed the ladder.ipv6
commit
7c2a4ee574
|
@ -56,6 +56,12 @@ public func StartSearchLadder()
|
|||
if (GetAction() == "WallJump" && this.ActMap.WallJump.StartCallLadderOverloaded)
|
||||
Call(this.ActMap.WallJump.StartCallLadderOverloaded);
|
||||
// Add an effect to search for ladders.
|
||||
ScheduleCall(this, this.AddSearchLadderEffect, 1, 1);
|
||||
return;
|
||||
}
|
||||
|
||||
public func AddSearchLadderEffect()
|
||||
{
|
||||
if (!GetEffect("InSearchLadder", this))
|
||||
AddEffect("IntSearchLadder", this, 1, 2, this);
|
||||
FxIntSearchLadderTimer();
|
||||
|
|
Loading…
Reference in New Issue