Adjust fight.reach to use optimal reference y.

This commit is contained in:
asofold 2012-10-06 19:38:46 +02:00
parent 308117054a
commit f913beba1f

View File

@ -89,7 +89,7 @@ public class Reach extends Check {
final double dY = dRef.getY();
if (pY <= dY); // Keep the foot level y.
else if (pY >= dY + height) dRef.setY(dY + height); // Highest ref y.
else dRef.setY(0); // Level with damaged.
else dRef.setY(pY); // Level with damaged.
final Vector pRel = dRef.toVector().subtract(pRef.toVector());