v0.9.3: adjusted jump VFX to still appear when jumping in-place
This commit is contained in:
parent
139b69d494
commit
53f01fcc6a
|
@ -276,7 +276,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
|
||||||
}
|
}
|
||||||
|
|
||||||
public void jump( int from, int to, Callback callback ) {
|
public void jump( int from, int to, Callback callback ) {
|
||||||
float distance = Dungeon.level.trueDistance( from, to );
|
float distance = Math.max( 1f, Dungeon.level.trueDistance( from, to ));
|
||||||
jump( from, to, callback, distance * 2, distance * 0.1f );
|
jump( from, to, callback, distance * 2, distance * 0.1f );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user