v0.9.3: adjusted jump VFX to still appear when jumping in-place

This commit is contained in:
Evan Debenham 2021-04-26 20:10:23 -04:00
parent 139b69d494
commit 53f01fcc6a

View File

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