v0.5.0: fixed thrown darts and javelins not aligning correctly

This commit is contained in:
Evan Debenham 2017-01-19 17:55:31 -05:00
parent f54540d7a4
commit 4d1446b229

View File

@ -101,7 +101,7 @@ public class MissileSprite extends ItemSprite implements Tweener.Listener {
|| image == ItemSpriteSheet.CURARE_DART || image == ItemSpriteSheet.JAVELIN) {
angularSpeed = 0;
angle = 135 - (float)(Math.atan2( d.y, d.x ) / 3.1415926 * 180);
angle = 135 - (float)(Math.atan2( d.x, d.y ) / 3.1415926 * 180);
} else {