forked from Mirrors/openclonk
if the clonk is stuck, he can't jump
parent
87faf5c0b5
commit
fb7a327475
|
@ -1391,7 +1391,7 @@ public func ControlJump()
|
|||
ydir = BoundBy(GetPhysical("Swim")/2500,24,38);
|
||||
}
|
||||
|
||||
if (ydir)
|
||||
if (ydir && !Stuck())
|
||||
{
|
||||
SetPosition(GetX(),GetY()-1);
|
||||
SetAction("Jump");
|
||||
|
|
Loading…
Reference in New Issue