Fix infinite coconut jump (#1388).

Hit is called after force redirection so resetting xdir to its pre-hit value is a bad idea.
shapetextures
Sven Eberhardt 2015-09-17 22:38:29 -04:00
parent 410e570b94
commit b746dcc1d4
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ protected func Hit(int dx, int dy)
{
// Bounce: useful for spreading seeds further from parent tree.
if (dy > 1)
SetSpeed(dx, dy / -2, 100);
SetYDir(dy / -2, 100);
StonyObjectHit(dx, dy);
return;