Balance maxphase violation better with default config.

This commit is contained in:
asofold 2013-02-01 16:13:19 +01:00
parent dba567ee2b
commit ed4b551c08

View File

@ -298,7 +298,7 @@ public class SurvivalFly extends Check {
else if (!data.sfDirty){
// Violation (Too high jumping or step).
tags.add("maxphase");
vDistanceAboveLimit = Math.max(vDistanceAboveLimit, 1.0);
vDistanceAboveLimit = Math.max(vDistanceAboveLimit, Math.max(yDistance, 0.5));
}
}