forked from Mirrors/openclonk
Fix infinite coconut jump (#1388).
Hit is called after force redirection so resetting xdir to its pre-hit value is a bad idea.shapetextures
parent
410e570b94
commit
b746dcc1d4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue